mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-06 16:55:43 +08:00
Merge branch 'devel-en' of https://github.com/dragonpilot-community/dragonpilot into devel-en
# Conflicts: # selfdrive/ui/ui.c
This commit is contained in:
@@ -348,6 +348,10 @@ static void set_awake(UIState *s, bool awake) {
|
||||
|
||||
static void set_volume(UIState *s, int volume) {
|
||||
char volume_change_cmd[64];
|
||||
if (s->dragon_ui_volume_boost > 0 || s->dragon_ui_volume_boost < 0) {
|
||||
volume = volume * (1 + s->dragon_ui_volume_boost /100);
|
||||
volume = volume > MAX_VOLUME? MAX_VOLUME : volume;
|
||||
}
|
||||
sprintf(volume_change_cmd, "service call audio 3 i32 3 i32 %d i32 1", volume);
|
||||
|
||||
// 5 second timeout at 60fps
|
||||
|
||||
Reference in New Issue
Block a user