MX 2 лет назад
Родитель
Сommit
d2c8ebd256
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      base_pack/pocsag_pager/protocols/pocsag.c

+ 6 - 1
base_pack/pocsag_pager/protocols/pocsag.c

@@ -171,11 +171,16 @@ static bool pocsag_decode_message_word(SubGhzProtocolDecoderPocsag* instance, ui
 // Function called when current message got decoded, but other messages might follow
 static void pocsag_message_done(SubGhzProtocolDecoderPocsag* instance) {
     // append the message to the long-term storage string
-    furi_string_printf(instance->generic.result_ric, "\e#RIC: %" PRIu32 "\e# | ", instance->ric);
+    furi_string_printf(
+        instance->generic.result_ric,
+        "[P%lu]\e#RIC: %" PRIu32 "\e# | ",
+        instance->version,
+        instance->ric);
     furi_string_cat_str(instance->generic.result_ric, func_msg[instance->func]);
     if(instance->func != POCSAG_FUNC_ALERT1) {
         furi_string_cat(instance->done_msg, instance->msg);
     }
+
     furi_string_cat_str(instance->done_msg, " ");
 
     furi_string_cat(instance->generic.result_msg, instance->done_msg);