function reload() {
    settings = require("Storage").readJSON("heart.json",1)||{};
    settings.fileNbr |= 0;

    Bangle.removeListener('HRM',onHRM);
    if (settings.isRecording) {
      WIDGETS["heart"].width = 24;
      Bangle.on('HRM',onHRM);
      Bangle.setHRMPower(1,"heart");
      var n = settings.fileNbr.toString(36);
      recFile = require("Storage").open(".heart"+n,"a");
    } else {
      WIDGETS["heart"].width = 0;
      Bangle.setHRMPower(0,"heart");
      recFile = undefined;
    }
  }
// Called by the heart app to reload settings and decide what's
Called by the heart app to reload settings and decide what's
Called by the heart app to reload settings and decide what ' s
function reload() {
    settings = require("Storage").readJSON("heart.json",1)||{};
    settings.fileNbr |= 0;
    Bangle.removeListener('HRM',onHRM);
    if (settings.isRecording) {
      WIDGETS["heart"].width = 24;
      Bangle.on('HRM',onHRM);
      Bangle.setHRMPower(1,"heart");
      var n = settings.fileNbr.toString(36);
      recFile = require("Storage").open(".heart"+n,"a");
    } else {
      WIDGETS["heart"].width = 0;
      Bangle.setHRMPower(0,"heart");
      recFile = undefined;
    }
  }
function reload ( ) { settings = require ( "Storage" ) . readJSON ( "heart.json" , 1 ) || { } ; settings . fileNbr |= 0 ; Bangle . removeListener ( 'HRM' , onHRM ) ; if ( settings . isRecording ) { WIDGETS [ "heart" ] . width = 24 ; Bangle . on ( 'HRM' , onHRM ) ; Bangle . setHRMPower ( 1 , "heart" ) ; var n = settings . fileNbr . toString ( 36 ) ; recFile = require ( "Storage" ) . open ( ".heart" + n , "a" ) ; } else { WIDGETS [ "heart" ] . width = 0 ; Bangle . setHRMPower ( 0 , "heart" ) ; recFile = undefined ; } }
Called by the heart app to reload settings and decide what's
Called by the heart app to reload settings and decide what ' s