Skip to content

Commit

Permalink
Fixed Panel Login
Browse files Browse the repository at this point in the history
  • Loading branch information
maragelis committed Feb 4, 2019
1 parent 1e29174 commit 095daca
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,13 @@ struct inPayload Decodejson(char *Payload){
unsigned long number2 = strtoul(charpass2, nullptr, 16);
unsigned long number3 = strtoul(charsubcommand, nullptr, 16);

if (number2 < 10)
number2 = number2 + 160;

if (number1 < 10)
number1 = number1 + 160;


byte PanelPassword1 = number1 & 0xFF;
byte PanelPassword2 = number2 & 0xFF;
byte SubCommand = number3 & 0xFF;
Expand Down

0 comments on commit 095daca

Please sign in to comment.