From 6e8775540e214570c057ea591651b5acc54224e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Dr=C3=B6scher?= Date: Sun, 22 Jul 2018 15:22:09 +0200 Subject: [PATCH] fix: GetFromDevice with BIG_BUF_EML dl_it was expecting CMD_DOWNLOADED_RAW_ADC_SAMPLES_125K but got CMD_DOWNLOADED_EML_BIGBUF resulting in an upload silently failing. --- client/cmdmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdmain.c b/client/cmdmain.c index 8cc6a0b60..635382f27 100644 --- a/client/cmdmain.c +++ b/client/cmdmain.c @@ -257,7 +257,7 @@ bool GetFromDevice(DeviceMemType_t memtype, uint8_t *dest, uint32_t bytes, uint3 case BIG_BUF_EML: { UsbCommand c = {CMD_DOWNLOAD_EML_BIGBUF, {start_index, bytes, 0}}; SendCommand(&c); - return dl_it(dest, bytes, start_index, response, ms_timeout, show_warning, CMD_DOWNLOADED_RAW_ADC_SAMPLES_125K); + return dl_it(dest, bytes, start_index, response, ms_timeout, show_warning, CMD_DOWNLOADED_EML_BIGBUF); } case FLASH_MEM: { UsbCommand c = {CMD_DOWNLOAND_FLASH_MEM, {start_index, bytes, 0}};