mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 01:56:14 +01:00
EXRAIL bugfix, protect RANDWAIT from division by zero. Triggered by DELAYRANDOM(X, X+99) or less diff
This commit is contained in:
parent
7c4640ad91
commit
ad6c1384c9
|
@ -750,7 +750,7 @@ void RMFT2::loop2() {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OPCODE_RANDWAIT:
|
case OPCODE_RANDWAIT:
|
||||||
delayMe((micros()%operand) *100L);
|
delayMe(operand==0 ? 0 : (micros()%operand) *100L);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OPCODE_RED:
|
case OPCODE_RED:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
#define GITHUB_SHA "PORTX-HAL-20220830"
|
#define GITHUB_SHA "PORTX-HAL-20220905"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#include "StringFormatter.h"
|
#include "StringFormatter.h"
|
||||||
|
|
||||||
|
|
||||||
#define VERSION "4.2.4 rc1"
|
#define VERSION "4.2.4 rc2"
|
||||||
// 4.2.4 ESP32 experimental BT support
|
// 4.2.4 ESP32 experimental BT support
|
||||||
// More DC configurations possible and lower frequency
|
// More DC configurations possible and lower frequency
|
||||||
// 4.2.3 Bugfix direction when togging between MAIN and DC
|
// 4.2.3 Bugfix direction when togging between MAIN and DC
|
||||||
|
|
Loading…
Reference in New Issue
Block a user