diff --git a/components/ratgdo/ratgdo.h b/components/ratgdo/ratgdo.h index 62af94f..54b6a07 100644 --- a/components/ratgdo/ratgdo.h +++ b/components/ratgdo/ratgdo.h @@ -38,7 +38,21 @@ namespace ratgdo { uint32_t data; } command; - static const Command = { + typedef struct { + command REBOOT1; + command REBOOT2; + command REBOOT3; + command REBOOT4; + command REBOOT5; + command REBOOT6; + command REBOOT4; + command DOOR1; + command DOOR2; + command LIGHT; + command LOCK; + } commands; + + const commands Command = { .REBOOT1 = (command) { 0x400000000, 0x0000618b }, .REBOOT2 = (command) { 0, 0x01009080 }, .REBOOT3 = (command) { 0, 0x0000b1a0 },