mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
just in case...
This commit is contained in:
parent
5b793ef20f
commit
c95d1fba80
@ -164,6 +164,7 @@ void jshTransmitClearDevice(IOEventFlags device) {
|
||||
|
||||
/// Move all output from one device to another
|
||||
void jshTransmitMove(IOEventFlags from, IOEventFlags to) {
|
||||
jshInterruptOff();
|
||||
unsigned char ptr = txTail;
|
||||
while (ptr != txHead) {
|
||||
if (IOEVENTFLAGS_GETTYPE(txBuffer[ptr].flags) == from) {
|
||||
@ -171,6 +172,7 @@ void jshTransmitMove(IOEventFlags from, IOEventFlags to) {
|
||||
}
|
||||
ptr = (unsigned char)((ptr+1)&TXBUFFERMASK);
|
||||
}
|
||||
jshInterruptOn();
|
||||
}
|
||||
|
||||
bool jshHasTransmitData() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user