From 24e8fa317e9905ee30d195c4beedd7b8939ed6e1 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 18 Aug 2021 01:23:26 -0400 Subject: 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 --- apps/plugins/properties.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/properties.c') 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) rb->talk_time(&tm, true); break; case LANG_PROPERTIES_DURATION: - rb->talk_value(nseconds, UNIT_TIME, true); + rb->talk_value_decimal(nseconds, UNIT_TIME, 0, true); break; case LANG_PROPERTIES_SUBDIRS: rb->talk_number(dps->dc, true); -- cgit v1.2.3