Sfoglia il codice sorgente

将button_handler函数设为内部函数

from: https://github.com/0x1abin/MultiButton/pull/38/commits/41514fed4b99263f0e41efce658934d6c4a27062
Meco Man 2 anni fa
parent
commit
8a74076d1c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      multi_button.c

+ 1 - 1
multi_button.c

@@ -65,7 +65,7 @@ PressEvent get_button_event(struct button* handle)
   * @param  handle: the button handle strcut.
   * @param  handle: the button handle strcut.
   * @retval None
   * @retval None
   */
   */
-void button_handler(struct button* handle)
+static void button_handler(struct button* handle)
 {
 {
     uint8_t read_gpio_level = handle->hal_button_Level();
     uint8_t read_gpio_level = handle->hal_button_Level();