diff options
author | Eric Caruso <ejcaruso@chromium.org> | 2020-10-16 11:22:37 -0700 |
---|---|---|
committer | Eric Caruso <ejcaruso@chromium.org> | 2020-10-16 11:22:37 -0700 |
commit | 1800983b6c77b495a97eb4335541561456abfed5 (patch) | |
tree | 9882f6130f9ef91ec298eba2d1243e6a9d1ae668 /src/mm-modem-helpers.h | |
parent | f013e94ff89680d1acd7dba12ff4a6a0fa7b58bf (diff) |
mm-modem-helpers: add low_nybble_first argument to mm_bcd_to_string
All BCD-encoded strings used by MM currently have the low nybble
of each byte come before the high nybble, but some strings (such
as the EID string returned by QMI Get Slot Status) are meant to
be read in order with the high nybble before the low one. As such,
extend mm_bcd_to_string to decode both.
Diffstat (limited to 'src/mm-modem-helpers.h')
-rw-r--r-- | src/mm-modem-helpers.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h index c1a1b2c9..fb556543 100644 --- a/src/mm-modem-helpers.h +++ b/src/mm-modem-helpers.h @@ -84,7 +84,9 @@ GArray *mm_filter_supported_modes (const GArray *all, const GArray *supported_combinations, gpointer log_object); -gchar *mm_bcd_to_string (const guint8 *bcd, gsize bcd_len); +gchar *mm_bcd_to_string (const guint8 *bcd, + gsize bcd_len, + gboolean low_nybble_first); /*****************************************************************************/ /* VOICE specific helpers and utilities */ |