1
0
craigsdennis 9 жил өмнө
parent
commit
00bf881c50
1 өөрчлөгдсөн 5 нэмэгдсэн , 5 устгасан
  1. 5 5
      README.md

+ 5 - 5
README.md

@@ -24,13 +24,13 @@ const esp = new RomComm({
 esp.open().then((result) => {
     log.info("ESP is open", result);
     esp.flashAddressFromFile(0x0000, "/path/to/binaries/boot_v1.4(b1).bin")
-        .then((result) => esp.flashAddressFromFile(0x1000, "/path/to/binaries/espruino_esp8266_user1.bin"))
-        .then((result) => esp.flashAddressFromFile(0x3FC000, "/path/to/binaries/esp_init_data_default.bin"))
-        .then((result) => esp.flashAddressFromFile(0x3FE000, "/path/to/binaries/blank.bin"))
-        .then((result) => esp.close())
+        .then(() => esp.flashAddressFromFile(0x1000, "/path/to/binaries/espruino_esp8266_user1.bin"))
+        .then(() => esp.flashAddressFromFile(0x3FC000, "/path/to/binaries/esp_init_data_default.bin"))
+        .then(() => esp.flashAddressFromFile(0x3FE000, "/path/to/binaries/blank.bin"))
+        .then(() => esp.close())
         .then((result) => log.info("Flashed to latest Espruino build!", result));
 }).catch((error) => {
-    log.error("Damnit!", error);
+    log.error("Oh noes!", error);
 });
 ```