You are reading a single comment by @Ganblejs and its replies. Click here to read the full conversation.
  • Try this:

    1. Open the web ide
    2. Press yellow connect icon in upper left corner.
    3. Choose 'Web Bluetooth'
    4. Chose 'Bangle.js ...' in the pop up.
    5. Press third icon from the top in the middle bar to see the files in device storage.
    6. Click the eye-icon on .bootcde to view it.
    7. Click 'Save' to download a backup, name will be 'bootcde.txt'.
    8. Click 'Decode JS' to make the code readable.
    9. Click 'Copy to Editor'
    10. Exit 'Device Storage' pop-up.
    11. Click small downward arrow on the fourth icon in the middle bar.
    12. Choose 'Storage' to select a file from storage
    13. Select '.bootcde'
    14. Inspect it to see if you can figure out how to fix you problem. If you do then stop following along and be happy! :)
    15. Delete all code.
    16. Copy and paste the following code to that same field in which you just deleted all code (it's from my Bangle.js 2 '.bootcde'-file):

      var clockApp=(require("Storage").readJSON("s­etting.json",1)||{}).clock;
      if(clockApp)clockApp=require("Storage").­read(clockApp);
      if(!clockApp){clockApp=require("Storage"­).list(/\.info$/).map(file =>{const app=require("Storage").readJSON(file,1);­if(app && app.type =="clock"){return app;}}).filter(x => x).sort((a,b)=> a.sortorder-b.sortorder)[0];if(clockApp)­clockApp=require("Storage").read(clockAp­p.src);}
      if(!clockApp)clockApp=`E.showMessage("No­ Clock Found");setWatch(()=>{Bangle.showLaunche­r();}, global.BTN2||BTN, {repeat:false,edge:"falling"});`;
      eval(clockApp);
      delete clockApp;
      
    17. Press the fourth button (not the little arrow) in the middle bar to upload the code.

    18. Hopefully the bangle boots and everything is fine, that's what happens for me in any case. :) If not try manually rebooting.

    19. Stop following along if the bangle works.

    20. If it still doesn't work I suggest you restore the code from the backup 'bootcde.txt' to your '.bootcde'-file (you'll have to connect the bangle again, se point 2.). In which case your back on square one. Sorry it didn't work :(

    EDIT: Consider sharing the code from your 'bootcde.txt' backup with a comment here as well in case that would help in figuring out if something should be fixed somewhere apart from on your bangle.

About

Avatar for Ganblejs @Ganblejs started