Browse Source

Fix codacy issues

ech1560
Xose Pérez 5 years ago
parent
commit
592ee1b593
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      code/gulpfile.js

+ 2
- 2
code/gulpfile.js View File

@ -72,8 +72,8 @@ var toHeader = function(name, debug) {
output += '#define ' + safename + '_len ' + source.contents.length + '\n';
output += 'const uint8_t ' + safename + '[] PROGMEM = {';
for (var i=0; i<source.contents.length; i++) {
if (i > 0) { output += ',' };
if (0 === (i % 20)) { output += '\n' };
if (i > 0) { output += ','; }
if (0 === (i % 20)) { output += '\n'; }
output += '0x' + ('00' + source.contents[i].toString(16)).slice(-2);
}
output += '\n};';


Loading…
Cancel
Save