mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-01 20:39:08 +00:00
More SGD
This commit is contained in:
@@ -59,9 +59,6 @@ void WeatherProcessor::on_message(const Message* const message) {
|
||||
|
||||
void WeatherProcessor::configure(const SubGhzFPRxConfigureMessage& message) {
|
||||
(void)message;
|
||||
|
||||
modulation = message.modulation; // NIY
|
||||
|
||||
if (protoMode != message.protoMode) {
|
||||
// change it.
|
||||
FProtoListGeneral* tmp = protoList;
|
||||
@@ -71,6 +68,13 @@ void WeatherProcessor::configure(const SubGhzFPRxConfigureMessage& message) {
|
||||
if (protoMode == 0) protoList = new WeatherProtos();
|
||||
if (protoMode == 1) protoList = new SubGhzDProtos();
|
||||
}
|
||||
|
||||
modulation = message.modulation; // NIY
|
||||
|
||||
if (protoList != NULL) {
|
||||
protoList->setModulation(modulation);
|
||||
}
|
||||
|
||||
configured = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user