fix
This commit is contained in:
parent
6b86680acb
commit
98fa6b5d8b
|
@ -185,33 +185,36 @@ namespace ratgdo {
|
||||||
uint64_t fixed = 0;
|
uint64_t fixed = 0;
|
||||||
uint32_t data = 0;
|
uint32_t data = 0;
|
||||||
|
|
||||||
if (strcmp(command, "reboot1") == 0) {
|
if(strcmp(command,"reboot1") == 0){
|
||||||
fixed = 0x400000000;
|
fixed = 0x400000000;
|
||||||
data = 0x0000618b;
|
data = 0x0000618b;
|
||||||
} else if (strcmp(command, "reboot2") == 0) {
|
}else if(strcmp(command,"reboot2") == 0){
|
||||||
fixed = 0;
|
fixed = 0;
|
||||||
data = 0x01009080;
|
data = 0x01009080;
|
||||||
} else if (strcmp(command, "reboot3") == 0) {
|
}else if(strcmp(command,"reboot3") == 0){
|
||||||
fixed = 0;
|
fixed = 0;
|
||||||
data = 0x0000b1a0;
|
data = 0x0000b1a0;
|
||||||
} else if (strcmp(command, "reboot4") == 0) {
|
}else if(strcmp(command,"reboot4") == 0){
|
||||||
fixed = 0;
|
fixed = 0;
|
||||||
data = 0x01009080;
|
data = 0x01009080;
|
||||||
} else if (strcmp(command, "reboot5") == 0) {
|
}else if(strcmp(command,"reboot5") == 0){
|
||||||
fixed = 0x300000000;
|
fixed = 0x300000000;
|
||||||
data = 0x00008092;
|
data = 0x00008092;
|
||||||
} else if (strcmp(command, "reboot6") == 0) {
|
}else if(strcmp(command,"reboot6") == 0){
|
||||||
fixed = 0x300000000;
|
fixed = 0x300000000;
|
||||||
data = 0x00008092;
|
data = 0x00008092;
|
||||||
} else if (strcmp(command, "door1") == 0) {
|
}else if(strcmp(command,"door1") == 0){
|
||||||
fixed = 0x200000000;
|
fixed = 0x200000000;
|
||||||
data = 0x01018280;
|
data = 0x01018280;
|
||||||
} else if (strcmp(command, "door2") == 0) {
|
}else if(strcmp(command,"door2") == 0){
|
||||||
fixed = 0x200000000;
|
fixed = 0x200000000;
|
||||||
data = 0x01009280;
|
data = 0x01009280;
|
||||||
} else if (strcmp(command, "light") == 0) {
|
}else if(strcmp(command,"light") == 0){
|
||||||
fixed = 0x200000000;
|
fixed = 0x200000000;
|
||||||
data = 0x00009281;
|
data = 0x00009281;
|
||||||
|
}else if(strcmp(command,"lock") == 0){
|
||||||
|
fixed = 0x0100000000;
|
||||||
|
data = 0x0000728c;
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGD(TAG, "ERROR: Invalid command");
|
ESP_LOGD(TAG, "ERROR: Invalid command");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue