Forráskód Böngészése

SubGhz: fix waiting for UPLOAD to be sent, for RAW file worker (#1146)

* SubGhz: fix waiting for UPLOAD to be sent
* SubGhz: remove debug output

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
Skorpionm 3 éve
szülő
commit
f9140ac2cd
1 módosított fájl, 4 hozzáadás és 1 törlés
  1. 4 1
      lib/subghz/subghz_file_encoder_worker.c

+ 4 - 1
lib/subghz/subghz_file_encoder_worker.c

@@ -167,7 +167,10 @@ static int32_t subghz_file_encoder_worker_thread(void* context) {
     }
     }
     //waiting for the end of the transfer
     //waiting for the end of the transfer
     FURI_LOG_I(TAG, "End read file");
     FURI_LOG_I(TAG, "End read file");
-
+    while(!furi_hal_subghz_is_async_tx_complete()) {
+        osDelay(5);
+    }
+    FURI_LOG_I(TAG, "End transmission");
     while(instance->worker_running) {
     while(instance->worker_running) {
         if(instance->worker_stoping) {
         if(instance->worker_stoping) {
             if(instance->callback_end) instance->callback_end(instance->context_end);
             if(instance->callback_end) instance->callback_end(instance->context_end);