\n );\n }\n}\n\nexport default withStyles(styles)(CustomStripEffects);\n","/home/nathan/source/inovelli-led-strip-toolbox/src/LED.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/CustomEffectEditor.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/HomeAssistantIcon.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/ParameterModal.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/SaveAsIcon.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/SaveIcon.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/SaveDialog.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/ImportProgram.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/OpenDialog.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/Utils.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/ClipboardAccess.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/AboutDialog.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/ShareDialog.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/service-worker.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/serviceWorkerRegistration.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/reportWebVitals.js",[],{"ruleId":"119","replacedBy":"120"},{"ruleId":"121","replacedBy":"122"},{"ruleId":"123","severity":1,"message":"124","line":1,"column":1,"nodeType":"125","endLine":11,"endColumn":3},{"ruleId":"126","severity":1,"message":"127","line":2,"column":35,"nodeType":"128","messageId":"129","endLine":2,"endColumn":39},{"ruleId":"126","severity":1,"message":"130","line":2,"column":41,"nodeType":"128","messageId":"129","endLine":2,"endColumn":44},{"ruleId":"126","severity":1,"message":"131","line":3,"column":8,"nodeType":"128","messageId":"129","endLine":3,"endColumn":13},{"ruleId":"126","severity":1,"message":"132","line":14,"column":3,"nodeType":"128","messageId":"129","endLine":14,"endColumn":12},{"ruleId":"126","severity":1,"message":"133","line":17,"column":3,"nodeType":"128","messageId":"129","endLine":17,"endColumn":17},{"ruleId":"126","severity":1,"message":"134","line":19,"column":3,"nodeType":"128","messageId":"129","endLine":19,"endColumn":10},{"ruleId":"126","severity":1,"message":"135","line":20,"column":3,"nodeType":"128","messageId":"129","endLine":20,"endColumn":9},{"ruleId":"126","severity":1,"message":"136","line":32,"column":8,"nodeType":"128","messageId":"129","endLine":32,"endColumn":16},{"ruleId":"126","severity":1,"message":"137","line":41,"column":3,"nodeType":"128","messageId":"129","endLine":41,"endColumn":11},"no-native-reassign",["138"],"no-negated-in-lhs",["139"],"import/no-anonymous-default-export","Assign object to a variable before exporting as module default","ExportDefaultDeclaration","no-unused-vars","'Tabs' is defined but never used.","Identifier","unusedVar","'Tab' is defined but never used.","'Strip' is defined but never used.","'TextField' is defined but never used.","'InputAdornment' is defined but never used.","'SvgIcon' is defined but never used.","'Button' is defined but never used.","'PlayIcon' is defined but never used.","'FINISHES' is defined but never used.","no-global-assign","no-unsafe-negation"]
\ No newline at end of file
+[{"/home/nathan/source/inovelli-led-strip-toolbox/src/index.js":"1","/home/nathan/source/inovelli-led-strip-toolbox/src/swconfig.js":"2","/home/nathan/source/inovelli-led-strip-toolbox/src/AppWrapper.js":"3","/home/nathan/source/inovelli-led-strip-toolbox/src/App.js":"4","/home/nathan/source/inovelli-led-strip-toolbox/src/ThemeProvider.js":"5","/home/nathan/source/inovelli-led-strip-toolbox/src/Strip.js":"6","/home/nathan/source/inovelli-led-strip-toolbox/src/AppBar.js":"7","/home/nathan/source/inovelli-led-strip-toolbox/src/Options.js":"8","/home/nathan/source/inovelli-led-strip-toolbox/src/CustomStripEffects.js":"9","/home/nathan/source/inovelli-led-strip-toolbox/src/LED.js":"10","/home/nathan/source/inovelli-led-strip-toolbox/src/CustomEffectEditor.js":"11","/home/nathan/source/inovelli-led-strip-toolbox/src/HomeAssistantIcon.js":"12","/home/nathan/source/inovelli-led-strip-toolbox/src/ParameterModal.js":"13","/home/nathan/source/inovelli-led-strip-toolbox/src/SaveAsIcon.js":"14","/home/nathan/source/inovelli-led-strip-toolbox/src/SaveIcon.js":"15","/home/nathan/source/inovelli-led-strip-toolbox/src/SaveDialog.js":"16","/home/nathan/source/inovelli-led-strip-toolbox/src/ImportProgram.js":"17","/home/nathan/source/inovelli-led-strip-toolbox/src/OpenDialog.js":"18","/home/nathan/source/inovelli-led-strip-toolbox/src/Utils.js":"19","/home/nathan/source/inovelli-led-strip-toolbox/src/ClipboardAccess.js":"20","/home/nathan/source/inovelli-led-strip-toolbox/src/AboutDialog.js":"21","/home/nathan/source/inovelli-led-strip-toolbox/src/ShareDialog.js":"22","/home/nathan/source/inovelli-led-strip-toolbox/src/service-worker.js":"23","/home/nathan/source/inovelli-led-strip-toolbox/src/serviceWorkerRegistration.js":"24","/home/nathan/source/inovelli-led-strip-toolbox/src/reportWebVitals.js":"25"},{"size":673,"mtime":1609907230223,"results":"26","hashOfConfig":"27"},{"size":268,"mtime":1609804151378,"results":"28","hashOfConfig":"27"},{"size":519,"mtime":1609804875869,"results":"29","hashOfConfig":"27"},{"size":8125,"mtime":1609889361748,"results":"30","hashOfConfig":"27"},{"size":1539,"mtime":1609804151370,"results":"31","hashOfConfig":"27"},{"size":2337,"mtime":1609804151369,"results":"32","hashOfConfig":"27"},{"size":1013,"mtime":1609889386785,"results":"33","hashOfConfig":"27"},{"size":3874,"mtime":1609804252874,"results":"34","hashOfConfig":"27"},{"size":20919,"mtime":1609912542030,"results":"35","hashOfConfig":"27"},{"size":2516,"mtime":1609804151363,"results":"36","hashOfConfig":"27"},{"size":4325,"mtime":1609804151358,"results":"37","hashOfConfig":"27"},{"size":1181,"mtime":1609804151361,"results":"38","hashOfConfig":"27"},{"size":9236,"mtime":1609804151366,"results":"39","hashOfConfig":"27"},{"size":645,"mtime":1609804151367,"results":"40","hashOfConfig":"27"},{"size":422,"mtime":1609804151368,"results":"41","hashOfConfig":"27"},{"size":1013,"mtime":1609804151368,"results":"42","hashOfConfig":"27"},{"size":1514,"mtime":1609804151362,"results":"43","hashOfConfig":"27"},{"size":4402,"mtime":1609804151363,"results":"44","hashOfConfig":"27"},{"size":1429,"mtime":1609912894738,"results":"45","hashOfConfig":"27"},{"size":1095,"mtime":1609804151357,"results":"46","hashOfConfig":"27"},{"size":2175,"mtime":1609889188886,"results":"47","hashOfConfig":"27"},{"size":2872,"mtime":1609899465406,"results":"48","hashOfConfig":"27"},{"size":2837,"mtime":1609907109824,"results":"49","hashOfConfig":"50"},{"size":5064,"mtime":1609907080375,"results":"51","hashOfConfig":"27"},{"size":364,"mtime":1609907068474,"results":"52","hashOfConfig":"50"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"jq0hv9",{"filePath":"55","messages":"56","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"59","messages":"60","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"69","messages":"70","errorCount":0,"warningCount":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"71","messages":"72","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"73","messages":"74","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"75","messages":"76","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"77","messages":"78","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"79","messages":"80","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"81","messages":"82","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"83","messages":"84","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"87","messages":"88","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"89","messages":"90","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"91","messages":"92","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"93","messages":"94","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"95","messages":"96","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"97","messages":"98","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"8stn2s",{"filePath":"99","messages":"100","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"101","messages":"102","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/nathan/source/inovelli-led-strip-toolbox/src/index.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/swconfig.js",["103"],"/home/nathan/source/inovelli-led-strip-toolbox/src/AppWrapper.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/App.js",["104","105","106"],"/home/nathan/source/inovelli-led-strip-toolbox/src/ThemeProvider.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/Strip.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/AppBar.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/Options.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/CustomStripEffects.js",["107","108","109","110","111","112"],"/home/nathan/source/inovelli-led-strip-toolbox/src/LED.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/CustomEffectEditor.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/HomeAssistantIcon.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/ParameterModal.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/SaveAsIcon.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/SaveIcon.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/SaveDialog.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/ImportProgram.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/OpenDialog.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/Utils.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/ClipboardAccess.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/AboutDialog.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/ShareDialog.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/service-worker.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/serviceWorkerRegistration.js",[],"/home/nathan/source/inovelli-led-strip-toolbox/src/reportWebVitals.js",[],{"ruleId":"113","severity":1,"message":"114","line":1,"column":1,"nodeType":"115","endLine":11,"endColumn":3},{"ruleId":"116","severity":1,"message":"117","line":2,"column":35,"nodeType":"118","messageId":"119","endLine":2,"endColumn":39},{"ruleId":"116","severity":1,"message":"120","line":2,"column":41,"nodeType":"118","messageId":"119","endLine":2,"endColumn":44},{"ruleId":"116","severity":1,"message":"121","line":3,"column":8,"nodeType":"118","messageId":"119","endLine":3,"endColumn":13},{"ruleId":"116","severity":1,"message":"122","line":14,"column":3,"nodeType":"118","messageId":"119","endLine":14,"endColumn":12},{"ruleId":"116","severity":1,"message":"123","line":17,"column":3,"nodeType":"118","messageId":"119","endLine":17,"endColumn":17},{"ruleId":"116","severity":1,"message":"124","line":19,"column":3,"nodeType":"118","messageId":"119","endLine":19,"endColumn":10},{"ruleId":"116","severity":1,"message":"125","line":20,"column":3,"nodeType":"118","messageId":"119","endLine":20,"endColumn":9},{"ruleId":"116","severity":1,"message":"126","line":32,"column":8,"nodeType":"118","messageId":"119","endLine":32,"endColumn":16},{"ruleId":"116","severity":1,"message":"127","line":41,"column":3,"nodeType":"118","messageId":"119","endLine":41,"endColumn":11},"import/no-anonymous-default-export","Assign object to a variable before exporting as module default","ExportDefaultDeclaration","no-unused-vars","'Tabs' is defined but never used.","Identifier","unusedVar","'Tab' is defined but never used.","'Strip' is defined but never used.","'TextField' is defined but never used.","'InputAdornment' is defined but never used.","'SvgIcon' is defined but never used.","'Button' is defined but never used.","'PlayIcon' is defined but never used.","'FINISHES' is defined but never used."]
\ No newline at end of file
diff --git a/src/CustomStripEffects.js b/src/CustomStripEffects.js
index 43bad23..7ddb3c0 100644
--- a/src/CustomStripEffects.js
+++ b/src/CustomStripEffects.js
@@ -97,6 +97,7 @@ class CustomStripEffects extends React.Component {
let EFFECTS = longToByteArray(query.p22).map(
(colorEffect) => shortToByteArray(colorEffect)[0]
);
+ console.log(COLORS,EFFECTS);
let BRIGHTNESS = longToByteArray(query.p23);
let DURATIONS = longToByteArray(query.p24);
let SETTINGS = longToByteArray(query.p30);
diff --git a/src/Utils.js b/src/Utils.js
index 602ae1b..12421fe 100644
--- a/src/Utils.js
+++ b/src/Utils.js
@@ -13,8 +13,8 @@ export const longToByteArray = function (/*long*/ long) {
export const shortToByteArray = function (/*short*/ short) {
var byteArray = [0, 0];
- byteArray[0] = short & 0x6;
- byteArray[1] = (short - (short & 0x6)) / 8;
+ byteArray[0] = short & 0x4;
+ byteArray[1] = (short - (short & 0x7)) / 8;
return byteArray;
};
@@ -58,11 +58,4 @@ export const COLORS = [
];
export const EFFECTS = ["Fade", "Fade Blend", "Flash", "Chase", "Chase Blend"];
-window.shortToByteArray = shortToByteArray;
-
-console.log(shortToByteArray(24));
-console.log([0, 1]);
-console.log(shortToByteArray(16));
-console.log([0, 2]);
-console.log(shortToByteArray(8));
-console.log([0, 3]);
+window.shortToByteArray = shortToByteArray;
\ No newline at end of file