MsgDblReg fix (#2144)

This commit is contained in:
Totoo 2024-05-11 10:52:35 +02:00 committed by GitHub
parent 963c6e5238
commit e666eb1797
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 29 additions and 6 deletions

View file

@ -31,7 +31,13 @@
namespace ui {
class BattinfoView : public View {
public:
~BattinfoView();
BattinfoView(NavigationView& nav);
BattinfoView(const BattinfoView&) = delete;
BattinfoView(BattinfoView&&) = delete;
BattinfoView& operator=(const BattinfoView&) = delete;
BattinfoView& operator=(BattinfoView&&) = delete;
void focus() override;
std::string title() const override { return "Battery"; };
@ -70,12 +76,9 @@ class BattinfoView : public View {
Button button_exit{
{72, 17 * 16, 96, 32},
"Back"};
MessageHandlerRegistration message_handler_frame_sync{
Message::ID::DisplayFrameSync,
[this](const Message* const) {
this->on_timer();
}};
static msg_t static_fn(void* arg);
static bool needRun;
Thread* thread{nullptr};
};
} /* namespace ui */