Change preprocessor directive for random solenoid firing (#26377)

Fix define verification
This commit is contained in:
Cipulot
2026-08-02 04:39:32 +02:00
committed by GitHub
parent 4699895f73
commit a000551018
+1 -1
View File
@@ -86,7 +86,7 @@ void solenoid_fire(uint8_t index) {
*
*/
void solenoid_fire_handler(void) {
#ifndef SOLENOID_RANDOM_FIRE
#ifdef SOLENOID_RANDOM_FIRE
if (NUMBER_OF_SOLENOIDS > 1) {
uint8_t i = rand() % NUMBER_OF_SOLENOIDS;
if (!solenoid_on[i]) {