diff --git a/Gui.h b/Gui.h index 892a7eb..622b046 100644 --- a/Gui.h +++ b/Gui.h @@ -919,11 +919,13 @@ static void gui_cmd_execute() { snprintf(buf, sizeof(buf), "{\"build\":\"%s %s\",\"loop\":%lu,\"radio\":%lu," "\"serial\":%lu,\"disp\":%lu,\"pmu\":%lu," - "\"gps\":%lu,\"bt\":%lu,\"imu\":%lu}\n", + "\"gps\":%lu,\"bt\":%lu,\"imu\":%lu," + "\"bcn_gate\":%d,\"hw_ready\":%d}\n", __DATE__, __TIME__, gui_loop_us_last, prof_radio_us, prof_serial_us, prof_display_us, prof_pmu_us, prof_gps_us, - prof_bt_us, prof_imu_us); + prof_bt_us, prof_imu_us, + beacon_gate, hw_ready ? 1 : 0); gui_loop_us_max = 0; Serial.write((uint8_t *)buf, strlen(buf)); Serial.flush(); diff --git a/RNode_Firmware.ino b/RNode_Firmware.ino index 05238c0..d2d0f3e 100644 --- a/RNode_Firmware.ino +++ b/RNode_Firmware.ino @@ -2073,10 +2073,12 @@ void loop() { #endif // Enter beacon sleep cycle when in standalone mode after beacon TX + // Don't sleep when on external power (USB) — keeps display and debug active #if BOARD_MODEL == BOARD_TWATCH_ULT if (beacon_mode_active && beacon_gate == 6 && + battery_state != BATTERY_STATE_CHARGING && + battery_state != BATTERY_STATE_CHARGED && (last_host_activity == 0 || (millis() - last_host_activity >= BEACON_NO_HOST_TIMEOUT_MS))) { - // Beacon was just sent and no host is connected — sleep until next interval sleep_now(); } #endif