It appears that:
open-square-bracket i close-square-bracket
got transmogrified into something else (start italics??)
Correct code:
(1)
void send_msg(char *s) {
int i = 0;
while ( s [ i ] ) {
jp1_chk ^= s [ i ] ;
SerTx( s [ i ] );
i++;
}
}
(2)
for (int i=0; i<jp1_len; i++) {
b = SerRxChk();
data_buf [ i ] =b;
}
I have attached the Arduino source file for convenience.
Happy JP1-ing!
JP1_Arduino.ino (12.9 KB)