mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-13 10:09:30 +00:00
Proto: bett
This commit is contained in:
@@ -12,6 +12,7 @@ So include here the .hpp, and add a new element to the protos vector in the cons
|
||||
#include "subghzdbase.hpp"
|
||||
#include "s-ansonic.hpp"
|
||||
#include "s-princeton.hpp"
|
||||
#include "s-bett.hpp"
|
||||
|
||||
#ifndef __FPROTO_PROTOLISTSGZ_H__
|
||||
#define __FPROTO_PROTOLISTSGZ_H__
|
||||
@@ -22,6 +23,7 @@ class SubGhzDProtos : public FProtoListGeneral {
|
||||
// add protos
|
||||
protos.push_back(std::make_unique<FProtoSubGhzDAnsonic>()); // 1
|
||||
protos.push_back(std::make_unique<FProtoSubGhzDPrinceton>()); // 2
|
||||
protos.push_back(std::make_unique<FProtoSubGhzDBett>()); // 3
|
||||
|
||||
// set callback for them
|
||||
for (const auto& obj : protos) {
|
||||
@@ -30,7 +32,7 @@ class SubGhzDProtos : public FProtoListGeneral {
|
||||
}
|
||||
|
||||
static void callbackTarget(FProtoSubGhzDBase* instance) {
|
||||
SubGhzDDataMessage packet_message{instance->getSensorType(), instance->getSensorSerial(), instance->getBits(), instance->getBtn()};
|
||||
SubGhzDDataMessage packet_message{instance->getSensorType(), instance->getSensorSerial(), instance->getBits(), instance->getData(), instance->getData2(), instance->getBtn()};
|
||||
shared_memory.application_queue.push(packet_message);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user