From ca2d6c33d2784688b7fe79e7f223ddaa87ba58a0 Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Sun, 29 Nov 2020 15:35:50 -0800 Subject: [PATCH] fix group SMS for Motorola --- gps_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gps_data.py b/gps_data.py index 148e78c..fa27613 100644 --- a/gps_data.py +++ b/gps_data.py @@ -282,7 +282,7 @@ class DATA_SYSTEM(HBSYSTEM): # Assume this is an SMS message if '$GPRMC' not in final_packet: # Motorola type SMS header - if '024' in hdr_start: + if '824' in hdr_start or '024' in hdr_start: logger.info('\nMotorola type SMS') sms = codecs.decode(bytes.fromhex(''.join(sms_hex[74:-8].split('00'))), 'utf-8') logger.info('\n\n' + 'Received SMS from ' + str(get_alias(int_id(_rf_src), subscriber_ids)) + ', DMR ID: ' + str(int_id(_rf_src)) + ': ' + str(sms) + '\n')