Update main.ino
The variable 'count' doesn't exist, should use ttn_get_count() instead.
This commit is contained in:
parent
2677322c98
commit
be91811022
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user