Here you have declared an array of 10 pointers. But you're not using
it as an array of pointers in your code. You're using it as a normal
character array. Declare it like this:
Code:
char ring[10];
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
Posted: Wed Jun 30, 2010 1:49 am
Two more problems:
1) strcmp can only compare strings, i.e. the data must be terminated with a zero. Your msg array is not zero terminated.
2) In the RDA interrupt you are adding data to the string buffer until a length of 69 is reached. However, your string buffer has only a size of 30...
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
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