From 5ea881c595403a8b1d50e7d89aa747972a84a32d Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 5 Jan 2025 17:46:36 +0100 Subject: [PATCH] [SX126x] Added explicit typecast --- src/modules/SX126x/SX126x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/SX126x/SX126x.cpp b/src/modules/SX126x/SX126x.cpp index 31aa2aa3..f14e0f87 100644 --- a/src/modules/SX126x/SX126x.cpp +++ b/src/modules/SX126x/SX126x.cpp @@ -470,7 +470,7 @@ int16_t SX126x::standby(uint8_t mode, bool wakeup) { // send a NOP command - this pulls the NSS low to exit the sleep mode, // while preventing interference with possible other SPI transactions // see https://github.com/jgromes/RadioLib/discussions/1364 - (void)this->mod->SPIwriteStream(RADIOLIB_SX126X_CMD_NOP, NULL, 0, false, false); + (void)this->mod->SPIwriteStream((uint16_t)RADIOLIB_SX126X_CMD_NOP, NULL, 0, false, false); } uint8_t data[] = { mode };