Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
send_repeatedly async_ack no error bugfix (#109)
- Loading branch information
Showing
with
6 additions
and
4 deletions.
-
+6
−4
PJON.h
|
@@ -494,7 +494,7 @@ limitations under the License. */ |
|
|
uint16_t send(uint8_t id, const char *string, uint16_t length, uint16_t header = NOT_ASSIGNED) { |
|
|
return dispatch(id, bus_id, string, length, 0, header); |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
uint16_t send( |
|
|
uint8_t id, |
|
@@ -803,9 +803,11 @@ limitations under the License. */ |
|
|
packets_count--; |
|
|
} |
|
|
} else { |
|
|
packets[i].attempts = 0; |
|
|
packets[i].registration = micros(); |
|
|
packets[i].state = TO_BE_SENT; |
|
|
if(!async_ack) { |
|
|
packets[i].attempts = 0; |
|
|
packets[i].registration = micros(); |
|
|
packets[i].state = TO_BE_SENT; |
|
|
} |
|
|
} if(!async_ack) continue; |
|
|
} |
|
|
|
|
|