Skip to content

Commit 42e0564

Browse files
loop233leeebo
andcommitted
Apply 1 suggestion(s) to 1 file(s)
Co-authored-by: Li Bo <[email protected]>
1 parent 44c6a57 commit 42e0564

File tree

1 file changed

+1
-0
lines changed
  • examples/bluetooth/ble_remote_control/main

1 file changed

+1
-0
lines changed

examples/bluetooth/ble_remote_control/main/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ void app_main(void)
261261
#else //CONFIG_JOYSTICK_INPUT_MODE_ADC
262262
xTaskCreate(joystick_ext_read, "ext_hardware_joystick", 2048, NULL, tskIDLE_PRIORITY, NULL);
263263
#endif
264+
// Create a timer to update battery level periodically (add 1 each time as an example)
264265
TimerHandle_t battery_timer = xTimerCreate(NULL, pdMS_TO_TICKS(5000), true, NULL, battery_timer_cb);
265266
if (xTimerStart(battery_timer, 0) != pdPASS) {
266267
ESP_LOGE(HID_DEMO_TAG, "Failed to start battery timer");

0 commit comments

Comments
 (0)