Commit d90567a2 authored by Alessio Igor Bogani's avatar Alessio Igor Bogani
Browse files

Change

parent a4a8feb5
......@@ -280,8 +280,9 @@ int main(void)
//ADC6 &= 0xff0; // read only one channel for digital FF
//ff=mpy((ADC6+0.0),0.005);
Debug0++; // Change
if (OCnorm != OCnorm_previous || ADC2 != ADC2_previous) {
Debug0++; // Change
Debug1++; // Change
OCnorm_previous = OCnorm;
ADC2_previous = ADC2;
......@@ -295,19 +296,20 @@ int main(void)
HEAD_index++;
if (HEAD_index >= 40) {
Debug1++; // Notification
Debug2++; // Notification
if (pru_rpmsg_send(&transport, dst, src, &p2udt,
sizeof(struct pru2user_data_transfer) * 40) != PRU_RPMSG_SUCCESS) {
Debug2++; // Notifications failed
Debug3++; // Notifications failed
} else {
HEAD_index -= 40;
}
}
#if 0
if (HEAD_index >= MAX_SRAM_SAMPLES) {
Debug3++; // Orrore!
}
#endif
}
}
}
......
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