فهرست منبع

Merge branch 'progress' of github.com:thingsSDK/flasher.js into progress

Andrew Chalkley 9 سال پیش
والد
کامیت
d6b39bca87
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      back-end/rom_comm.js

+ 1 - 1
back-end/rom_comm.js

@@ -311,7 +311,7 @@ class RomComm extends EventEmitter {
 
     flashSpecifications(specs) {
         let totalBytes = specs.reduce((counter, spec) => {
-            counter += spec.buffer.length;
+            return counter + spec.buffer.length;
         }, 0);
         let details = {
             totalFiles: specs.length,