refactor LED dwell time to function call

This commit is contained in:
joeycastillo
2024-09-29 08:58:28 -04:00
parent 379a795ad3
commit 1c2f1bad5d
4 changed files with 18 additions and 7 deletions

View File

@@ -383,6 +383,14 @@ void movement_set_backlight_color(movement_color_t color) {
movement_state.settings.bit.led_blue_color = color.blue;
}
uint8_t movement_get_backlight_dwell(void) {
return movement_state.settings.bit.led_duration;
}
void movement_set_backlight_dwell(uint8_t value) {
movement_state.settings.bit.led_duration = value;
}
bool movement_alarm_enabled(void) {
return movement_state.settings.bit.alarm_enabled;
}