From a9269aacaa5633682273763aa97c590c87ce7954 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Jun 2023 15:11:16 -0500 Subject: [PATCH] fix --- components/ratgdo/ratgdo.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 },