mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-10 08:39:29 +00:00
Memory management improv.
This commit is contained in:
@@ -77,6 +77,10 @@ void ExtSensorsView::on_any() {
|
||||
has_data = true;
|
||||
}
|
||||
|
||||
void ExtSensorsView::on_show() {
|
||||
i2cdev::I2CDevManager::set_autoscan_interval(3);
|
||||
}
|
||||
|
||||
void ExtSensorsView::on_gps(const GPSPosDataMessage* msg) {
|
||||
on_any();
|
||||
std::string tmp = to_string_decimal(msg->lat, 5);
|
||||
|
||||
@@ -78,6 +78,8 @@ class ExtSensorsView : public View {
|
||||
void on_orientation(const OrientationDataMessage* msg);
|
||||
void on_environment(const EnvironmentDataMessage* msg);
|
||||
|
||||
void on_show() override;
|
||||
|
||||
MessageHandlerRegistration message_handler_gps{
|
||||
Message::ID::GPSPosData,
|
||||
[this](Message* const p) {
|
||||
|
||||
Reference in New Issue
Block a user