[LR11x0] Fix struct initialization

This commit is contained in:
jgromes 2024-05-19 19:09:04 +02:00
parent 98c80a9cb9
commit 534a2f2d62

View file

@ -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);