File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -297,11 +297,11 @@ const Comms = {
297
297
298
298
startUpload ( ) . then ( doUploadFiles , function ( err ) {
299
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)
300
+ if ( Const . PACKET_UPLOAD_CHUNKSIZE > 256 ) {
301
+ // Espruino 2v25 has a 1 sec packet timeout (which isn't enough for 2kb packets if sending 20b at a time)
302
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 ;
303
+ console . warn ( `Using lower upload chunk size (${ Const . PACKET_UPLOAD_CHUNKSIZE } ==> 256 )` ) ;
304
+ Const . PACKET_UPLOAD_CHUNKSIZE = 256 ;
305
305
}
306
306
startUpload ( ) . then ( doUploadFiles , function ( err ) {
307
307
console . warn ( "Second attempt failed - bailing." , err ) ;
You can’t perform that action at this time.
0 commit comments