Skip to content

Commit 554b04c

Browse files
committed
misc.
1 parent 4765fc8 commit 554b04c

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

Common/Cpp/ListenerSet.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#include <map>
1111
#include <atomic>
12-
#include <mutex>
1312
#include "Common/Cpp/Concurrency/SpinLock.h"
1413

1514
//#include <iostream>

Common/Microcontroller/MessageProtocol.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,11 @@ typedef struct{
266266
uint32_t data;
267267
} PABB_PACK pabb_MsgAckRequestI32;
268268

269+
#define PABB_MSG_ACK_REQUEST_DATA 0x1f
270+
typedef struct{
271+
seqnum_t seqnum;
272+
} PABB_PACK pabb_MsgAckRequestData;
273+
269274
////////////////////////////////////////////////////////////////////////////////
270275
// Custom Info
271276

Common/NintendoSwitch/NintendoSwitch_Protocol_ESP32.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,14 @@ typedef struct{
6666
#endif
6767

6868

69-
#define PABB_MSG_ESP32_SET_COLORS 0x62
69+
70+
#define PABB_MSG_ESP32_GET_COLORS 0x64
71+
#define PABB_MSG_ESP32_SET_COLORS 0x65
7072
typedef struct{
7173
seqnum_t seqnum;
7274
uint32_t controller_type;
7375
ControllerColors colors;
74-
} PABB_PACK pabb_esp32_set_colors;
76+
} PABB_PACK pabb_esp32_colors;
7577

7678

7779
#define PABB_MSG_ESP32_CONTROLLER_STATE_BUTTONS 0xa0

SerialPrograms/Source/NintendoSwitch/Framework/NintendoSwitch_MultiSwitchProgramSession.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ void MultiSwitchProgramSession::run_program_instance(MultiSwitchProgramEnvironme
112112
}
113113
}catch (...){
114114
for (size_t c = 0; c < consoles; c++){
115-
env.consoles[c].controller().cancel_all_commands();
115+
try{
116+
env.consoles[c].controller().cancel_all_commands();
117+
}catch (...){}
116118
}
117119
m_scope.store(nullptr, std::memory_order_release);
118120
throw;

SerialPrograms/Source/NintendoSwitch/Framework/NintendoSwitch_SingleSwitchProgramSession.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ void SingleSwitchProgramSession::run_program_instance(SingleSwitchProgramEnviron
8686
ControllerContext<AbstractController> context(scope, env.console.controller());
8787
context.wait_for_all_requests();
8888
}catch (...){
89-
env.console.controller().cancel_all_commands();
89+
try{
90+
env.console.controller().cancel_all_commands();
91+
}catch (...){}
9092
m_scope.store(nullptr, std::memory_order_release);
9193
throw;
9294
}

0 commit comments

Comments
 (0)