Merge branch 'feat-additional-compensation' of https://github.com/jpirnay/crosspoint-reader into mybuild

This commit is contained in:
jpirnay
2026-03-29 18:35:36 +02:00
parent 4740145a88
commit 0bdfc6e816
27 changed files with 1514 additions and 85 deletions
@@ -0,0 +1,28 @@
#pragma once
#include <string>
#include "activities/Activity.h"
class DetectTimezoneActivity final : public Activity {
public:
explicit DetectTimezoneActivity(GfxRenderer& renderer, MappedInputManager& mappedInput)
: Activity("DetectTimezone", renderer, mappedInput) {}
void onEnter() override;
void onExit() override;
void loop() override;
void render(RenderLock&&) override;
private:
enum State { CONNECTING, DETECTING, SUCCESS, FAILED };
State state = CONNECTING;
std::string detectedTimezone;
bool dstKnown = false;
bool dstActive = false;
void onWifiSelectionComplete(bool success);
void onWifiSelectionCancelled();
void performDetect();
const char* dstStatusLabel() const;
};