split query of paxcounter data from sending funcionality; don't cummulate (count mode != 1); use flag to signal changed count data

This commit is contained in:
Thomas Herrmann
2024-03-10 16:08:26 +01:00
committed by Thomas Göttgens
co-authored by Thomas Göttgens
parent d1a25947e3
commit fb4faf790b
2 changed files with 21 additions and 6 deletions
+3
View File
@@ -13,10 +13,13 @@
class PaxcounterModule : private concurrency::OSThread, public ProtobufModule<meshtastic_Paxcount>
{
bool firstTime = true;
bool reportedDataSent = true;
public:
PaxcounterModule();
static void handlePaxCounterReportRequest();
protected:
struct count_payload_t count_from_libpax = {0, 0, 0};
virtual int32_t runOnce() override;