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
1 changed files with 2 additions and 1 deletions

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