Просмотр исходного кода

* companion: CMD_SEND_TXT_MSG fix for attempt number

Scott Powell 1 год назад
Родитель
Сommit
7010123619
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      examples/companion_radio/main.cpp

+ 1 - 1
examples/companion_radio/main.cpp

@@ -907,7 +907,7 @@ public:
       memcpy(&msg_timestamp, &cmd_frame[i], 4); i += 4;
       uint8_t* pub_key_prefix = &cmd_frame[i]; i += 6;
       ContactInfo* recipient = lookupContactByPubKey(pub_key_prefix, 6);
-      if (recipient && attempt < 4 && (txt_type == TXT_TYPE_PLAIN || txt_type == TXT_TYPE_CLI_DATA)) {
+      if (recipient && (txt_type == TXT_TYPE_PLAIN || txt_type == TXT_TYPE_CLI_DATA)) {
         char *text = (char *) &cmd_frame[i];
         int tlen = len - i;
         uint32_t est_timeout;