From f6f5c22bbdbb18a6afa99a1d6c30f8c6b6f303f8 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Sat, 26 Nov 2022 00:15:09 +0100 Subject: [PATCH] more random bits there --- EXRAIL2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXRAIL2.cpp b/EXRAIL2.cpp index 2143010..0b25e99 100644 --- a/EXRAIL2.cpp +++ b/EXRAIL2.cpp @@ -727,7 +727,7 @@ void RMFT2::loop2() { break; case OPCODE_IFRANDOM: // do block on random percentage - skipIf=(uint8_t)micros() >= operand; + skipIf= ((uint8_t)((uint16_t)micros()>>4)) >= operand; break; case OPCODE_IFRESERVE: // do block if we successfully RERSERVE