Kaynağa Gözat

Removes a few dangling deps

craigsdennis 9 yıl önce
ebeveyn
işleme
ba2cb405a6
2 değiştirilmiş dosya ile 1 ekleme ve 14 silme
  1. 0 11
      back-end/rom_comm.js
  2. 1 3
      package.json

+ 0 - 11
back-end/rom_comm.js

@@ -1,7 +1,6 @@
 "use strict";
 
 const SerialPort = require("serialport").SerialPort;
-const bufferpack = require("bufferpack");
 const slip = require("./streams/slip");
 
 // ../esptool.py --port /dev/cu.SLAB_USBtoUART --baud 115200 \
@@ -9,12 +8,6 @@ const slip = require("./streams/slip");
 //   0x0000 "boot_v1.4(b1).bin" 0x1000 espruino_esp8266_user1.bin \
 //   0x3FC000 esp_init_data_default.bin 0x3FE000 blank.bin
 
-// Marriage of ESPTOOL-CK and ESPTOOL.py
-const BOOTLOADER_HEADER_SIZE = 8;
-const formats = {
-    bootloader_packet_header: "<B(direction)B(command)H(size)I(checksum)"
-};
-
 const commands = {
     CMD0: 0x00,
     CMD1: 0x01,
@@ -36,10 +29,6 @@ function commandToKey(command) {
     return Object.keys(commands).find((key) => commands[key] === command);
 }
 
-// FIXME: SlipUtils
-
-
-
 const SYNC_FRAME = new Buffer([0x07, 0x07, 0x12, 0x20,
                         0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55,
                         0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55,

+ 1 - 3
package.json

@@ -24,10 +24,8 @@
   },
   "homepage": "https://github.com/thingsSDK/especially-flasher#readme",
   "dependencies": {
-    "bufferpack": "0.0.6",
     "node-binary": "^1.1.0",
-    "serialport": "^2.0.7-beta1",
-    "slip": "^1.0.2"
+    "serialport": "^2.0.7-beta1"
   },
   "devDependencies": {
     "electron-prebuilt": "^0.36.9"