u-blox / ublox-cellular-driver-gen

Dependents:   example-ublox-at-cellular-interface-ext example-ublox-cellular-driver-gen HelloMQTT ublox_new_driver_test ... more

Files at this revision

API Documentation at this revision

Comitter:
fahimalavi
Date:
Tue Jul 24 13:06:55 2018 +0000
Parent:
7:a9eea2dbdd68
Child:
9:a5389248c8d0
Commit message:
Time limit is set to static value when reading block of data from modem

Changed in this revision

UbloxCellularDriverGen.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/UbloxCellularDriverGen.cpp	Fri Jun 16 00:49:52 2017 +0100
+++ b/UbloxCellularDriverGen.cpp	Tue Jul 24 13:06:55 2018 +0000
@@ -675,7 +675,7 @@
                     // of 100 ms (for short files)
                     timer.reset();
                     timer.start();
-                    timeLimit = blockSize * 4 / ((MBED_CONF_UBLOX_CELL_BAUD_RATE / 8) / 1000);
+                    timeLimit = FILE_BUFFER_SIZE * 4 / ((MBED_CONF_UBLOX_CELL_BAUD_RATE / 8) / 1000);
                     if (timeLimit < 100) {
                         timeLimit = 100;
                     }