Skip to content

Commit

Permalink
Merge tock#85
Browse files Browse the repository at this point in the history
85: Imix app: dont print error for enoack r=ppannuto a=hudson-ayers

Currently, the Imix test app will print `Error sending packet -13` if a receiving device is not also active nearby and acking packets sent by the sender. This is a result of the 15.4 stack now correctly returning ENOACK when packets are transmitted successfully but not Acked (tock/tock#758). 

This PR fixes the Imix app to not indicate an error if TOCK_ENOACK is returned when sending a 15.4 packet.

It also removes the "kernel" comment to reflect that LED(0) is no longer the led labeled "kernel" as that LED is no longer accessible from userspace.

Co-authored-by: Hudson Ayers <hayers@stanford.edu>
  • Loading branch information
bors[bot] and hudson-ayers committed Apr 29, 2020
2 parents bd77c93 + 5dcfb4b commit a6b07c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/tests/imix/main.c
Expand Up @@ -43,7 +43,7 @@ static void button_callback(__attribute__ ((unused)) int btn_num,
__attribute__ ((unused)) int arg2,
__attribute__ ((unused)) void *ud) {
if (val == 1) {
led_on(0); // kernel
led_on(0);
} else {
led_off(0);
}
Expand Down Expand Up @@ -114,7 +114,7 @@ static void send_ieee802154_packet(void) {
NULL, // unused since SEC_LEVEL_NONE
packet,
len);
if (err != TOCK_SUCCESS) {
if (err != TOCK_SUCCESS && err != TOCK_ENOACK) {
printf("Error sending packet %d\n", err);
}
}
Expand Down

0 comments on commit a6b07c6

Please sign in to comment.