Skip to content

Commit

Permalink
Rename TZ-COMMAND to TZ-COMMAND-OK and command to ok
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Mar 29, 2016
1 parent 74ad775 commit 6afb735
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 101 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const getCommand = (raw) => {
const password = match[1];
const code = match[2];
const extra = match[3] ? match[3].substr(1).split(',') : null;
let data = {device: 'TZ-COMMAND', type: 'command', password: password};
let data = {device: 'TZ-COMMAND-OK', type: 'ok', password: password};
if (code === '001') {
data.command = 'SetUserPassword';
data.newPassword = extra[0];
Expand Down
Loading

0 comments on commit 6afb735

Please sign in to comment.