Преглед изворни кода

Backlight (#13) + blue LED during communication

Oleg Logvinov пре 9 месеци
родитељ
комит
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));
             memcpy(&app->data, event.data.buffer, sizeof(DataStruct));
             app->bt_state = BtStateRecieving;
             app->bt_state = BtStateRecieving;
             app->last_packet = furi_hal_rtc_get_timestamp();
             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);
         }
         }
     }
     }