[FL-2100] SubGhz: GUI download and transfer RAW file (#881)

* SubGhz: fix exit subghz_chat
* SubGhz: refactoring GUI RAW

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Skorpionm
2021-12-08 19:00:54 +04:00
committed by GitHub
parent c6cb6ae810
commit 9f28338d9e
6 changed files with 39 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ static int32_t subghz_chat_worker_thread(void* context) {
event.event = SubghzChatEventUserEntrance;
osMessageQueuePut(instance->event_queue, &event, 0, 0);
while(instance->worker_running) {
if(furi_hal_vcp_rx_with_timeout((uint8_t*)&c, 1, osWaitForever) == 1) {
if(furi_hal_vcp_rx_with_timeout((uint8_t*)&c, 1, 1000) == 1) {
event.event = SubghzChatEventInputData;
event.c = c;
osMessageQueuePut(instance->event_queue, &event, 0, osWaitForever);