Skip to content

Commit

Permalink
let simulatot clear spiled
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Dec 6, 2024
1 parent 994026a commit 8ce2abb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/driver/drv_spiLED.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ void SPILED_SetRawBytes(int start_offset, byte *bytes, int numBytes, int push) {
SPIDMA_StartTX(spiLED.msg);
}
}
void SPILED_Shutdown() {
spiLED.ready = 0;
}

void SPILED_Init() {
uint32_t val;
Expand Down
3 changes: 2 additions & 1 deletion src/driver/drv_spiLED.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ void SPILED_InitDMA(int numBytes);

void SPILED_SetRawHexString(int start_offset, const char *s, int push);
void SPILED_SetRawBytes(int start_offset, byte *bytes, int numBytes, int push);
void SPILED_Init();
void SPILED_Init();
void SPILED_Shutdown();
1 change: 1 addition & 0 deletions src/win_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ void SIM_ClearOBK(const char *flashPath) {
#endif
SIM_Hack_ClearSimulatedPinRoles();
WIN_ResetMQTT();
SPILED_Shutdown(); // won't hurt
UART_ResetForSimulator();
CMD_ExecuteCommand("clearAll", 0);
CMD_ExecuteCommand("led_expoMode", 0);
Expand Down

0 comments on commit 8ce2abb

Please sign in to comment.