Proto: bett

This commit is contained in:
HTotoo
2023-12-09 19:34:00 +01:00
parent 39fabab022
commit db4083f684
7 changed files with 115 additions and 9 deletions
+7 -2
View File
@@ -46,17 +46,22 @@ struct SubGhzDRecentEntry {
uint16_t bits = 0;
uint8_t btn = SD_NO_BTN;
uint16_t age = 0; // updated on each seconds, show how long the signal was last seen
uint32_t data = 0;
uint32_t data_2 = 0;
SubGhzDRecentEntry() {}
SubGhzDRecentEntry(
uint8_t sensorType,
uint32_t serial,
uint16_t bits = 0,
uint32_t data = 0,
uint32_t data_2 = 0,
uint8_t btn = SD_NO_BTN)
: sensorType{sensorType},
serial{serial},
bits{bits},
btn{btn} {
btn{btn},
data{data},
data_2{data_2} {
}
Key key() const {
return (static_cast<uint64_t>(serial) << 32) |