Merge pull request #109 from juribeparada/master

Fix "polls lost" bug
This commit is contained in:
Jonathan Naylor 2018-05-13 18:31:15 +01:00 committed by GitHub
commit fc0b4efa14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -246,10 +246,12 @@ int CYSFGateway::run()
for (;;) {
unsigned char buffer[200U];
memset(buffer, 0U, 200U);
while (rptNetwork.read(buffer) > 0U) {
CYSFFICH fich;
bool valid = fich.decode(buffer + 35U);
m_exclude = false;
if (valid) {
unsigned char fi = fich.getFI();
unsigned char dt = fich.getDT();