diff options
author | William Wilgus <wilgus.william@gmail.com> | 2021-08-18 01:23:26 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2021-08-19 01:17:29 +0000 |
commit | 24e8fa317e9905ee30d195c4beedd7b8939ed6e1 (patch) | |
tree | b1dbca81e43d045c2df6fa9848e3a5bb4e9d91e8 /apps/plugins/vbrfix.c | |
parent | 4cbb5b42010309677f3590e3a716c69c12e8adf2 (diff) | |
download | rockbox-24e8fa317e9905ee30d195c4beedd7b8939ed6e1.tar.gz rockbox-24e8fa317e9905ee30d195c4beedd7b8939ed6e1.zip |
plugins trade talk_value for talk_value_decimal
talk_value is just talk_value_decimal with 0 decimals
lets add the extended function instead
static inline int talk_val(long n, int unit, bool enqueue)
{
#define NODECIMALS 0
return rb->talk_value_decimal(n, unit, NODECIMALS, enqueue);
}
Change-Id: Iaba3d2f95785f2e1855e294ccf099a977bb6cb20
Diffstat (limited to 'apps/plugins/vbrfix.c')
-rw-r--r-- | apps/plugins/vbrfix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/vbrfix.c b/apps/plugins/vbrfix.c index 768ec9d99f..88f0a6579e 100644 --- a/apps/plugins/vbrfix.c +++ b/apps/plugins/vbrfix.c | |||
@@ -37,7 +37,7 @@ static void xingupdate(int percent) | |||
37 | long now = *(rb->current_tick) / HZ; | 37 | long now = *(rb->current_tick) / HZ; |
38 | if (now - last_talk >= 5) | 38 | if (now - last_talk >= 5) |
39 | { | 39 | { |
40 | rb->talk_value(percent, UNIT_PERCENT, false); | 40 | rb->talk_value_decimal(percent, UNIT_PERCENT, 0, false); |
41 | last_talk = now; | 41 | last_talk = now; |
42 | } | 42 | } |
43 | } | 43 | } |