Просмотр исходного кода

Backlight (#13) + blue LED during communication

Oleg Logvinov 9 месяцев назад
Родитель
Сommit
ae7224f050
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      pc_monitor.c

+ 5 - 0
pc_monitor.c

@@ -41,6 +41,11 @@ static uint16_t bt_serial_callback(SerialServiceEvent event, void* ctx) {
             memcpy(&app->data, event.data.buffer, sizeof(DataStruct));
             app->bt_state = BtStateRecieving;
             app->last_packet = furi_hal_rtc_get_timestamp();
+
+            // Elegant solution, the backlight is only on when there is continuous communication
+            notification_message(app->notification, &sequence_display_backlight_on);
+
+            notification_message(app->notification, &sequence_blink_blue_10);
         }
     }