u16 check;
+ if(data==0xffff)
+ return 0;
+
*((unsigned volatile short *)addr)=0xa0;
*((unsigned volatile short *)addr)=data;
while(1) {
unlock_bypass_reset(bank);
/* modify cksm on purpose, so the user knows ... */
- cksm+=1;
+ if(ret==-1)
+ cksm+=1;
/* send the cksm */
uart0_send_byte(cksm);