You can expand the if() statement above, so that it also sets a global flag
to TRUE. The code in main() can check this flag. If it is TRUE,
then you can send data from the buffer[] array to the PC with printf.
Also set the flag to FALSE. The flag should be initialized to FALSE
at the start of main() in the slave code.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum