if (isBusy())
return 0;
else {
- while (!call Registers.getIfgTx());
+ while (!call Registers.getIfgTx() && !call Registers.getCtl1(UCSWRST));
call Registers.setTxbuf(byte);
- while(!call Registers.getIfgRx());
+ while(!call Registers.getIfgRx() && !call Registers.getCtl1(UCSWRST));
return call Registers.getRxbuf();
}
}