From 534a2f2d6282b5d1e74e4eb8b7197c65f58d03b5 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 19 May 2024 19:09:04 +0200 Subject: [PATCH] [LR11x0] Fix struct initialization --- 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 75cd360b..1e5fe5b8 100644 --- a/src/modules/LR11x0/LR11x0.cpp +++ b/src/modules/LR11x0/LR11x0.cpp @@ -1709,7 +1709,7 @@ bool LR11x0::findChip(uint8_t ver) { reset(); // read the version - LR11x0VersionInfo_t info = { 0 }; + LR11x0VersionInfo_t info; int16_t state = getVersionInfo(&info); if((state == RADIOLIB_ERR_NONE) && (info.device == ver)) { RADIOLIB_DEBUG_BASIC_PRINTLN("Found LR11x0: RADIOLIB_LR11X0_CMD_GET_VERSION = 0x%02x", info.device);