From 592ee1b593ccabd4cbc5722e21ae1b203e901778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 27 Aug 2018 11:50:23 +0200 Subject: [PATCH] Fix codacy issues --- code/gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/gulpfile.js b/code/gulpfile.js index d4089e61..05e4c58e 100644 --- a/code/gulpfile.js +++ b/code/gulpfile.js @@ -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 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};';