[LR11x0] Fix struct initialization

pull/1102/head
jgromes 2024-05-19 19:09:04 +02:00
rodzic 98c80a9cb9
commit 534a2f2d62
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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