Ver código fonte

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

Andrew Chalkley 9 anos atrás
pai
commit
d6b39bca87
1 arquivos alterados com 1 adições e 1 exclusões
  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) {
     flashSpecifications(specs) {
         let totalBytes = specs.reduce((counter, spec) => {
         let totalBytes = specs.reduce((counter, spec) => {
-            counter += spec.buffer.length;
+            return counter + spec.buffer.length;
         }, 0);
         }, 0);
         let details = {
         let details = {
             totalFiles: specs.length,
             totalFiles: specs.length,