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/properties.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/properties.c')
-rw-r--r-- | apps/plugins/properties.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index 28f539f49f..0fa83c0b56 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c | |||
@@ -334,7 +334,7 @@ static int speak_property_selection(int selected_item, void *data) | |||
334 | rb->talk_time(&tm, true); | 334 | rb->talk_time(&tm, true); |
335 | break; | 335 | break; |
336 | case LANG_PROPERTIES_DURATION: | 336 | case LANG_PROPERTIES_DURATION: |
337 | rb->talk_value(nseconds, UNIT_TIME, true); | 337 | rb->talk_value_decimal(nseconds, UNIT_TIME, 0, true); |
338 | break; | 338 | break; |
339 | case LANG_PROPERTIES_SUBDIRS: | 339 | case LANG_PROPERTIES_SUBDIRS: |
340 | rb->talk_number(dps->dc, true); | 340 | rb->talk_number(dps->dc, true); |