Obsolete
/
libipc-old
Archived
3
0
Fork 0

Bindings: update API (following previous naming consistency changes).

master
Philippe Pittoli 2023-01-20 23:14:02 +01:00
parent 3e3d996e7b
commit eb99ba6cb2
2 changed files with 4 additions and 4 deletions

View File

@ -174,11 +174,11 @@ int wait_event(void) {
printf ("TIMER.\n"); printf ("TIMER.\n");
break; break;
} }
case TX: { case MESSAGE_TX: {
printf ("A message has been sent.\n"); printf ("A message has been sent.\n");
break; break;
} }
case MESSAGE: { case MESSAGE_RX: {
if (size == 0) { if (size == 0) {
printf ("No message returned.\n"); printf ("No message returned.\n");
return 1; return 1;

View File

@ -95,11 +95,11 @@ int main(int argc, char**argv) {
break; break;
} }
case TX: { case MESSAGE_TX: {
printf ("Message sent.\n"); printf ("Message sent.\n");
break; break;
} }
case MESSAGE: { case MESSAGE_RX: {
if (size == 0) { if (size == 0) {
printf ("Error: no message returned.\n"); printf ("Error: no message returned.\n");
should_continue = 0; should_continue = 0;