mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
re-added buffer underrun handling
should not be necessary because the number of LED's in a usual Lightberry setup is to low, but it's nice to have implemented. Former-commit-id: def3c46687670439be572e6b9c2dd1de5be2f1b5
This commit is contained in:
parent
f950ec7df6
commit
8d52466acd
@ -252,11 +252,11 @@ void setup()
|
||||
// If serial buffer is threatening to underrun, start
|
||||
// introducing progressively longer pauses to allow more
|
||||
// data to arrive (up to a point).
|
||||
// if((bytesBuffered < 32) && (bytesRemaining > bytesBuffered)) {
|
||||
// startTime = micros();
|
||||
// hold = 100 + (32 - bytesBuffered) * 10;
|
||||
// mode = MODE_HOLD;
|
||||
//}
|
||||
if ((bytesBuffered < 32) && (bytesRemaining > bytesBuffered)) {
|
||||
startTime = micros();
|
||||
hold = 100 + (32 - bytesBuffered) * 10;
|
||||
mode = MODE_HOLD;
|
||||
}
|
||||
} else {
|
||||
// End of data -- issue latch:
|
||||
startTime = micros();
|
||||
|
Loading…
x
Reference in New Issue
Block a user