Setfreq usb command (#2235)

* SetFreq usb command for rx apps
* code format, better check
This commit is contained in:
Totoo 2024-09-04 20:26:31 +02:00 committed by GitHub
parent a2c4fefe34
commit 02b75f567a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 202 additions and 0 deletions

View file

@ -195,6 +195,14 @@ class SondeView : public View {
const auto message = static_cast<const OrientationDataMessage*>(p);
this->on_orientation(message);
}};
MessageHandlerRegistration message_handler_freqchg{
Message::ID::FreqChangeCommand,
[this](Message* const p) {
const auto message = static_cast<const FreqChangeCommandMessage*>(p);
this->on_freqchg(message->freq);
}};
void on_freqchg(int64_t freq);
void on_gps(const GPSPosDataMessage* msg);
void on_orientation(const OrientationDataMessage* msg);