Commit 3868b985 authored by Alessio Igor Bogani's avatar Alessio Igor Bogani
Browse files

Changes

parent a91e9a8f
......@@ -293,7 +293,8 @@ int main(void)
if (data_index == 0) {
PRU1_CTRL.CYCLE = 1; // Reset counter
if (pru_rpmsg_receive(&transport, &src, &dst, p2udt, &len) != PRU_RPMSG_SUCCESS) {
char cmd[10];
if (pru_rpmsg_receive(&transport, &src, &dst, cmd, &len) != PRU_RPMSG_SUCCESS) {
//Debug2++; // Missing notification receive
continue;
} else {
......@@ -307,7 +308,7 @@ int main(void)
data_index++;
if (data_index > 40) {
if (pru_rpmsg_send(&transport, dst, src, p2udt, len) != PRU_RPMSG_SUCCESS) {
if (pru_rpmsg_send(&transport, dst, src, p2udt, 480) != PRU_RPMSG_SUCCESS) {
//Debug3++; // Missing notification sent
} else {
Debug3 = len;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment