Skip to content

Commit 98f02ee

Browse files
authored
Merge pull request #265 from theburke9/fix_memset_ublock_struct
fix: replace memset with value initialization for uBloxGnssModelInfo
2 parents 938bcf6 + 2467903 commit 98f02ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LilyGoLib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ bool LilyGoLib::gpsProbe()
679679

680680
uint16_t len = getAck(buffer, 256, 0x0A, 0x04);
681681
if (len) {
682-
memset(&info, 0, sizeof(info));
682+
info = uBloxGnssModelInfo{};
683683
uint16_t position = 0;
684684
for (int i = 0; i < 30; i++) {
685685
info.softVersion[i] = buffer[position];

0 commit comments

Comments
 (0)