From 92c08c1ebff95dfd3c49077a80ff88d7c7db52ec Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 5 Jan 2025 17:46:30 +0100 Subject: [PATCH] [LR11x0] Added explicit typecast --- src/modules/LR11x0/LR11x0.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/LR11x0/LR11x0.cpp b/src/modules/LR11x0/LR11x0.cpp index a360b935..f039bc42 100644 --- a/src/modules/LR11x0/LR11x0.cpp +++ b/src/modules/LR11x0/LR11x0.cpp @@ -358,7 +358,7 @@ int16_t LR11x0::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_LR11X0_CMD_NOP, NULL, 0, false, false); + (void)this->mod->SPIwriteStream((uint16_t)RADIOLIB_LR11X0_CMD_NOP, NULL, 0, false, false); } uint8_t buff[] = { mode };