bugfix progversion handling in configmanager
This commit is contained in:
1 parent
a7bc2be9b7
commit
d8210d3ec3
2 files changed
+9
-7
No files matched your search
@@ -32,7 +32,9 @@ static uint8_t buffer[cfgLen + cfgLen2];
|
||||
// 3. magicByte [cfgLen2 bytes, containing a fixed identifier]
|
||||
|
||||
static void defaultConfig(configData_t *myconfig) {
|
||||
memcpy(myconfig->version, &PROGVERSION, 10); // Firmware version
|
||||
|
||||
strncpy(myconfig->version, PROGVERSION,
|
||||
sizeof(myconfig->version) - 1); // Firmware version
|
||||
|
||||
// device factory settings
|
||||
myconfig->loradr = LORADRDEFAULT; // 0-15, lora datarate, see paxcounter.conf
|
||||
|
||||
Reference in new issue
Block a user