Update main.ino

The variable 'count' doesn't exist, should use ttn_get_count() instead.
This commit is contained in:
Pieter de Rijk 2021-01-23 12:27:32 +01:00
parent 2677322c98
commit be91811022

View File

@ -74,7 +74,8 @@ bool trySend() {
buildPacket(txBuffer);
#if LORAWAN_CONFIRMED_EVERY > 0
bool confirmed = (count % LORAWAN_CONFIRMED_EVERY == 0);
bool confirmed = (ttn_get_count() % LORAWAN_CONFIRMED_EVERY == 0);
if (confirmed){ Serial.println("confirmation enabled"); }
#else
bool confirmed = false;
#endif