Skip to content

Commit 4b5aa6f

Browse files
committed
Add pairing status.
1 parent 9365924 commit 4b5aa6f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

SerialPrograms/Source/Controllers/SerialPABotBase/SerialPABotBase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ namespace SerialPABotBase{
1515

1616
const std::map<pabb_ProgramID, uint32_t>& SUPPORTED_DEVICES(){
1717
static const std::map<pabb_ProgramID, uint32_t> database{
18-
{PABB_PID_UNSPECIFIED, 2025090300},
18+
{PABB_PID_UNSPECIFIED, 2025090400},
1919
{PABB_PID_PABOTBASE_ArduinoUnoR3, 2025090300},
2020
{PABB_PID_PABOTBASE_ArduinoLeonardo, 2025090300},
2121
{PABB_PID_PABOTBASE_ProMicro, 2025090300},
2222
{PABB_PID_PABOTBASE_Teensy2, 2025090300},
2323
{PABB_PID_PABOTBASE_TeensyPP2, 2025090300},
24-
{PABB_PID_PABOTBASE_ESP32, 2025090300},
24+
{PABB_PID_PABOTBASE_ESP32, 2025090302},
2525
{PABB_PID_PABOTBASE_ESP32S3, 2025090300},
2626
};
2727
return database;

SerialPrograms/Source/NintendoSwitch/Controllers/SerialPABotBase/NintendoSwitch_SerialPABotBase_WirelessController.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,15 +440,22 @@ void SerialPABotBase_WirelessController::status_thread(){
440440
last_ack.store(current_time(), std::memory_order_relaxed);
441441

442442
uint32_t status = response.data;
443-
bool status_connected = status & 1;
443+
// bool status_connected = status & 1;
444444
bool status_ready = status & 2;
445+
bool status_paired = status & 4;
445446

446447
std::string str;
448+
str += "Paired: " + (status_paired
449+
? html_color_text("Yes", theme_friendly_darkblue())
450+
: html_color_text("No", COLOR_RED)
451+
);
452+
#if 0
447453
str += "Connected: " + (status_connected
448454
? html_color_text("Yes", theme_friendly_darkblue())
449455
: html_color_text("No", COLOR_RED)
450456
);
451-
str += " - Ready: " + (status_ready
457+
#endif
458+
str += " - Connected: " + (status_ready
452459
? html_color_text("Yes", theme_friendly_darkblue())
453460
: html_color_text("No", COLOR_RED)
454461
);

0 commit comments

Comments
 (0)