1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-26 17:46:14 +01:00

more random bits there

This commit is contained in:
Harald Barth 2022-11-26 00:15:09 +01:00
parent fc3a28143d
commit f6f5c22bbd

View File

@ -727,7 +727,7 @@ void RMFT2::loop2() {
break; break;
case OPCODE_IFRANDOM: // do block on random percentage case OPCODE_IFRANDOM: // do block on random percentage
skipIf=(uint8_t)micros() >= operand; skipIf= ((uint8_t)((uint16_t)micros()>>4)) >= operand;
break; break;
case OPCODE_IFRESERVE: // do block if we successfully RERSERVE case OPCODE_IFRESERVE: // do block if we successfully RERSERVE