From 533131f83f9001742b40d873c96c328c89f524c6 Mon Sep 17 00:00:00 2001 From: jgromes Date: Fri, 25 Dec 2020 14:17:07 +0100 Subject: [PATCH] Fixed unitialized variable warning --- src/Module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module.cpp b/src/Module.cpp index 2205b326..029d6934 100644 --- a/src/Module.cpp +++ b/src/Module.cpp @@ -219,7 +219,7 @@ int16_t Module::SPIsetRegValue(uint8_t reg, uint8_t value, uint8_t msb, uint8_t // check register value each millisecond until check interval is reached // some registers need a bit of time to process the change (e.g. SX127X_REG_OP_MODE) uint32_t start = Module::micros(); - uint8_t readValue; + uint8_t readValue = 0x00; while(Module::micros() - start < (checkInterval * 1000)) { readValue = SPIreadRegister(reg); if(readValue == newValue) {