Wilson Tang
/
HSP_RPC_GUI
Fork of the offical HSP_RPC_GUI firmware
Fork of MAXREFDES100 firmware for MAX32620HSP
Diff: HSP/main.cpp
- Revision:
- 3:8e9b9f5818aa
- Parent:
- 1:9490836294ea
--- a/HSP/main.cpp Fri Apr 21 18:10:37 2017 -0500 +++ b/HSP/main.cpp Tue Apr 25 10:47:10 2017 -0500 @@ -263,7 +263,12 @@ } // process any logging or streaming requests LoggingService_ServiceRoutine(); - // allow for ble processing - ble.waitForEvent(); + // determine if we are doing a large USB transfer of flash datalog sensor data + // skip updating the ble and sleeping, this conditional branch increases download + // rates by about %450 (time to download 32M flash from 90 minutes to about 20 minutes) + if (RPC_IsTransferingFlashPages() == false) { + // allow for ble processing + ble.waitForEvent(); + } } }