Skip to content

Commit

Permalink
[SX128x] Added explicit typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
jgromes committed Jan 5, 2025
1 parent 5ea881c commit 06f4169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/SX128x/SX128x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ int16_t SX128x::standby(uint8_t mode, bool wakeup) {
if(wakeup) {
// send a NOP command - this pulls the NSS low to exit the sleep mode,
// while preventing interference with possible other SPI transactions
(void)this->mod->SPIwriteStream(RADIOLIB_SX128X_CMD_NOP, NULL, 0, false, false);
(void)this->mod->SPIwriteStream((uint16_t)RADIOLIB_SX128X_CMD_NOP, NULL, 0, false, false);
}

uint8_t data[] = { mode };
Expand Down

0 comments on commit 06f4169

Please sign in to comment.