Bug fix release

Dependents:   AntiTheftGPS XbeeReceive XbeeSend Superball_Ball2 ... more

Issue: buffer_count[RxIrq] goes to negative, MODSERIAL_RX_BUFFER_EMPTY is false

Hi,

somehow buffer_count[RxIrq] goes to negative at some point of running (after several hours), which causes MODSERIAL_RX_BUFFER_EMPTY macro to return false and MODSERIAL::readable() returns true.

In GETC.CPP file there is

GETC.CPP

buffer_count[RxIrq]--; 

which is called if called MODSERIAL:: getcNb();

What could cause this? Should I make modifications to getc.cpp? If this not an issue, feel free to remove this but I would appreciate if you could help me in this issue! Thank you!

if (buffer_count[RxIrq]>0){
    	buffer_count[RxIrq]--;
}