File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 5656 function wrap ( code , callback ) {
5757 // convert any non-0..255 charcodes to UTF8 encoding
5858 code = Espruino . Core . Utils . asUTF8Bytes ( code ) ;
59- // Depending on settings, choose how we package code for upload
59+ // Depending on settings, choose how we package code for upload (see Espruino.Core.Send.SEND_MODE_* constants)
6060 var isFlashPersistent = Espruino . Config . SAVE_ON_SEND == 2 ;
61- var isStorageUpload = Espruino . Config . SAVE_ON_SEND == Espruino . Core . Send . SEND_MODE_STORAGE ;
62- var isSDCardUpload = Espruino . Config . SAVE_ON_SEND == Espruino . Core . Send . SEND_MODE_SDCARD ;
63- var isFlashUpload = Espruino . Config . SAVE_ON_SEND == Espruino . Core . Send . SEND_MODE_FLASH || isFlashPersistent || isStorageUpload ;
61+ var isStorageUpload = Espruino . Config . SAVE_ON_SEND == 3 ;
62+ var isSDCardUpload = Espruino . Config . SAVE_ON_SEND == 4 ;
63+ var isFlashUpload = Espruino . Config . SAVE_ON_SEND == 1 || isFlashPersistent || isStorageUpload ;
6464 if ( ! isFlashUpload && ! isSDCardUpload ) return callback ( code ) ;
6565
6666 var asJS = Espruino . Core . Utils . toJSONishString ;
You can’t perform that action at this time.
0 commit comments