mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-11-21 22:47:05 +00:00
Fix off-by-one when loading the T1000-E buzzer setting
This commit is contained in:
1 parent
f215e6db26
commit
b21cc3e36a
1 file changed
+1
-1
@@ -31,7 +31,7 @@ void T1000eBoard::attachDynamicPrefs(KeyValueStore* prefs) {
|
||||
#ifdef PIN_BUZZER_EN
|
||||
char val[8];
|
||||
val[0] = 0;
|
||||
_prefs->getByKey("buzzer", val, sizeof(val));
|
||||
_prefs->getByKey("buzzer", val, sizeof(val) - 1);
|
||||
_buzzer_muted = strcmp(val, "0") == 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user