Skip to content

Commit

Permalink
Fix set_speed_onE command
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Mar 31, 2016
1 parent c0ba73b commit 98ca8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ const parseCommand = (data) => {
state = data.instruction.split('_')[2];
times = data.times || 10;
interval = data.interval || 60;
digit = state === 'on' ? 1 : 0;
digit = /on(E)?/.test(state) ? 1 : 0;
command = `*${password},005,${digit},${speed},${times},${interval}#`;
} else if (data.instruction === 'picture') {
interval = data.interval || 5;
Expand Down

0 comments on commit 98ca8f4

Please sign in to comment.