diff options
-rw-r--r-- | firmware/export/sound.h | 1 | ||||
-rw-r--r-- | firmware/sound.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/firmware/export/sound.h b/firmware/export/sound.h index 9bcb9a8513..2e04cac854 100644 --- a/firmware/export/sound.h +++ b/firmware/export/sound.h | |||
@@ -31,6 +31,7 @@ int sound_numdecimals(int setting); | |||
31 | int sound_steps(int setting); | 31 | int sound_steps(int setting); |
32 | int sound_min(int setting); | 32 | int sound_min(int setting); |
33 | int sound_max(int setting); | 33 | int sound_max(int setting); |
34 | int sound_num_decimals(int setting); | ||
34 | int sound_current(int setting); | 35 | int sound_current(int setting); |
35 | int sound_default(int setting); | 36 | int sound_default(int setting); |
36 | sound_set_type* sound_get_fn(int setting); | 37 | sound_set_type* sound_get_fn(int setting); |
diff --git a/firmware/sound.c b/firmware/sound.c index acf198da2e..71bdc25003 100644 --- a/firmware/sound.c +++ b/firmware/sound.c | |||
@@ -98,6 +98,11 @@ int sound_default(int setting) | |||
98 | return get_settings_info(setting)->defaultval; | 98 | return get_settings_info(setting)->defaultval; |
99 | } | 99 | } |
100 | 100 | ||
101 | int sound_num_decimals(int setting) | ||
102 | { | ||
103 | return get_settings_info(setting)->numdecimals; | ||
104 | } | ||
105 | |||
101 | sound_set_type * sound_get_fn(int setting) | 106 | sound_set_type * sound_get_fn(int setting) |
102 | { | 107 | { |
103 | return get_setting_entry(setting)->function; | 108 | return get_setting_entry(setting)->function; |