Require correct module in apploader.js and fix typo in appinfo.js

pull/453/head
Simon Weis 2020-05-26 22:42:13 +02:00
parent 5530b80ca8
commit 7f83f2afd4
2 changed files with 2 additions and 2 deletions

View File

@ -15,6 +15,7 @@ var SETTINGS = {
};
var Utils = require("../js/utils.js");
var AppInfo = require("../js/appinfo.js");
var noble = require('@abandonware/noble');
var apps;
function ERROR(msg) {
@ -62,7 +63,6 @@ function cmdInstallApp(appId) {
}
function bangleSend(command) {
var noble = require('noble');
var log = function() {
var args = [].slice.call(arguments);
console.log("UART: "+args.join(" "));

View File

@ -2,7 +2,7 @@ if (typeof btoa==="undefined") {
// Don't define btoa as a function here because Apple's
// iOS browser defines the function even though it's in
// an IF statement that is never executed!
btoa = function(d) { return BufferA.from(d).toString('base64'); }
btoa = function(d) { return Buffer.from(d).toString('base64'); }
}
// Converts a string into most efficient way to send to Espruino (either json, base64, or compressed base64)