Reset the mode's state machines when going to the disabled state.

This commit is contained in:
Jonathan Naylor
2019-01-19 17:15:24 +00:00
parent b16aaa653c
commit ae9e6ea6ab
15 changed files with 286 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018 by Jonathan Naylor G4KLX
* Copyright (C) 2018,2019 by Jonathan Naylor G4KLX
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -39,6 +39,8 @@ public:
void clock(unsigned int ms);
void enable(bool enabled);
private:
CPOCSAGNetwork* m_network;
CDisplay* m_display;
@@ -58,6 +60,7 @@ private:
uint32_t m_ric;
std::string m_text;
POCSAG_STATE m_state;
bool m_enabled;
FILE* m_fp;
bool processData();