Skip to content

Commit 7581157

Browse files
committed
Added buzzer mode
1 parent cec9223 commit 7581157

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

meshtastic/config.proto

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,36 @@ message Config {
150150
CORE_PORTNUMS_ONLY = 5;
151151
}
152152

153+
/*
154+
* Defines buzzer behavior for audio feedback
155+
*/
156+
enum BuzzerMode {
157+
/*
158+
* Default behavior.
159+
* Buzzer is enabled for all audio feedback including button presses and alerts.
160+
*/
161+
ALL_ENABLED = 0;
162+
163+
/*
164+
* Disabled.
165+
* All buzzer audio feedback is disabled.
166+
*/
167+
DISABLED = 1;
168+
169+
/*
170+
* Notifications Only.
171+
* Buzzer is enabled only for notifications and alerts, but not for button presses.
172+
* External notification config determines the specifics of the notification behavior.
173+
*/
174+
NOTIFICATIONS_ONLY = 2;
175+
176+
/*
177+
* Non-notification system buzzer tones only.
178+
* Buzzer is enabled only for non-notification tones such as button presses, startup, shutdown, but not for alerts.
179+
*/
180+
SYSTEM_ONLY = 3;
181+
}
182+
153183
/*
154184
* Sets the role of node
155185
*/
@@ -210,6 +240,12 @@ message Config {
210240
* If true, disable the default blinking LED (LED_PIN) behavior on the device
211241
*/
212242
bool led_heartbeat_disabled = 12;
243+
244+
/*
245+
* Controls buzzer behavior for audio feedback
246+
* Defaults to ENABLED
247+
*/
248+
BuzzerMode buzzer_mode = 13;
213249
}
214250

215251
/*

0 commit comments

Comments
 (0)