RP wrote: > I can't quite figure out what it's doing wrong but you have :- > > for(i=0;i > and then later on > > if(i==0 && read_data == 0x42) continue > > but by pre incrementing i, it can never equal 0 in the second if statement. > > maybe the first statement should be :- > for(i=0;i