File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ const Comms = {
76
76
return Puck . getConnection ( ) ;
77
77
}
78
78
} ,
79
- supportsPacketUpload : ( ) => Comms . getConnection ( ) . espruinoSendFile && ! Utils . versionLess ( device . version , "2v25" ) ,
79
+ supportsPacketUpload : ( ) => ( ! SETTINGS . noPackets ) && Comms . getConnection ( ) . espruinoSendFile && ! Utils . versionLess ( device . version , "2v25" ) ,
80
80
// Faking EventEmitter
81
81
handlers : { } ,
82
82
on : function ( id , callback ) { // calling with callback=undefined will disable
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ const DEFAULTSETTINGS = {
11
11
bleCompat : false , // 20 byte MTU BLE Compatibility mode
12
12
sendUsageStats : true , // send usage stats to banglejs.com
13
13
alwaysAllowUpdate : false , // Always show "reinstall app" buttonregardless of the version
14
- autoReload : false // Automatically reload watch after app App Loader actions (removes "Hold button" prompt)
14
+ autoReload : false , // Automatically reload watch after app App Loader actions (removes "Hold button" prompt)
15
+ noPackets : false , // Enable File Upload Compatibility mode (disables binary packet upload)
15
16
} ;
16
17
var SETTINGS = JSON . parse ( JSON . stringify ( DEFAULTSETTINGS ) ) ; // clone
17
18
@@ -1270,6 +1271,7 @@ settingsCheckbox("settings-minify", "minify");
1270
1271
settingsCheckbox ( "settings-settime" , "settime" ) ;
1271
1272
settingsCheckbox ( "settings-alwaysAllowUpdate" , "alwaysAllowUpdate" ) ;
1272
1273
settingsCheckbox ( "settings-autoReload" , "autoReload" ) ;
1274
+ settingsCheckbox ( "settings-nopacket" , "noPackets" ) ;
1273
1275
loadSettings ( ) ;
1274
1276
1275
1277
let btn ;
You can’t perform that action at this time.
0 commit comments