prefs is 5 char length :nerd:

This commit is contained in:
Wessel Nieboer
2026-02-25 09:11:23 +01:00
committed by Wessel Nieboer
parent 06ab9f7f6b
commit d9e67222f5

View File

@@ -749,7 +749,7 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
_prefs->advert_loc_policy = ADVERT_LOC_SHARE;
savePrefs();
strcpy(reply, "ok");
} else if (memcmp(command+11, "prefs", 4) == 0) {
} else if (memcmp(command+11, "prefs", 5) == 0) {
_prefs->advert_loc_policy = ADVERT_LOC_PREFS;
savePrefs();
strcpy(reply, "ok");