We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fb5e83 commit 0ab55f5Copy full SHA for 0ab55f5
js/comms.js
@@ -297,6 +297,12 @@ const Comms = {
297
298
startUpload().then(doUploadFiles, function(err) {
299
console.warn("First attempt failed:", err);
300
+ if (Const.PACKET_UPLOAD_CHUNKSIZE > 128) {
301
+ // Espruino 2v25 has a 1 sec packet timeout (which isn't enough for 1kb packets if sending 20b at a time)
302
+ // https://github.com/espruino/BangleApps/issues/3792#issuecomment-2804668109
303
+ console.warn(`Using lower upload chunk size (${Const.PACKET_UPLOAD_CHUNKSIZE} ==> 128)`);
304
+ Const.PACKET_UPLOAD_CHUNKSIZE = 128;
305
+ }
306
307
console.warn("Second attempt failed - bailing.", err);
308
reject(err)
0 commit comments