Issue with looping mixes (thanks Gabriel for reporting it)

This commit is contained in:
bsongis
2012-07-26 08:44:48 +00:00
parent 9c20efb6ef
commit 3c8c213ce3
+4 -4
View File
@@ -2041,8 +2041,8 @@ void perOut(uint8_t tick10ms)
if (swTog) {
sDelay[i] = md->delayUp * 50;
}
if (sDelay[i]) { // perform delay
if(tick10ms) sDelay[i]-=tick10ms;
if (sDelay[i] > 0) { // perform delay
if (tick10ms) sDelay[i]-=tick10ms;
if (!md->swtch) {
v = -1024;
}
@@ -2062,8 +2062,8 @@ void perOut(uint8_t tick10ms)
if (swTog) {
sDelay[i] = md->delayDown * 50;
}
if (sDelay[i]) { // perform delay
if(tick10ms) sDelay[i]-=tick10ms;
if (sDelay[i] > 0) { // perform delay
if (tick10ms) sDelay[i]-=tick10ms;
if (!md->swtch) v = +1024;
has_delay = true;
}