summaryrefslogtreecommitdiff
path: root/apps/menus/eq_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus/eq_menu.c')
-rw-r--r--apps/menus/eq_menu.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/menus/eq_menu.c b/apps/menus/eq_menu.c
index b3e67e42ef..1dbb5541c5 100644
--- a/apps/menus/eq_menu.c
+++ b/apps/menus/eq_menu.c
@@ -51,14 +51,6 @@
51 * Utility functions 51 * Utility functions
52 */ 52 */
53 53
54void eq_gain_format(char* buffer, size_t buffer_size, int value, const char* unit)
55{
56 int v = abs(value);
57
58 snprintf(buffer, buffer_size, "%s%d.%d %s", value < 0 ? "-" : "",
59 v / EQ_USER_DIVISOR, v % EQ_USER_DIVISOR, unit);
60}
61
62void eq_q_format(char* buffer, size_t buffer_size, int value, const char* unit) 54void eq_q_format(char* buffer, size_t buffer_size, int value, const char* unit)
63{ 55{
64 snprintf(buffer, buffer_size, "%d.%d %s", value / EQ_USER_DIVISOR, value % EQ_USER_DIVISOR, unit); 56 snprintf(buffer, buffer_size, "%d.%d %s", value / EQ_USER_DIVISOR, value % EQ_USER_DIVISOR, unit);