summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/export/sound.h1
-rw-r--r--firmware/sound.c5
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);
int sound_steps(int setting);
int sound_min(int setting);
int sound_max(int setting);
+int sound_num_decimals(int setting);
int sound_current(int setting);
int sound_default(int setting);
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)
return get_settings_info(setting)->defaultval;
}
+int sound_num_decimals(int setting)
+{
+ return get_settings_info(setting)->numdecimals;
+}
+
sound_set_type * sound_get_fn(int setting)
{
return get_setting_entry(setting)->function;