From a00055101868f7bf6fc4312a1cb04fc0e53b99d2 Mon Sep 17 00:00:00 2001 From: Cipulot <40441626+Cipulot@users.noreply.github.com> Date: Sun, 2 Aug 2026 04:39:32 +0200 Subject: [PATCH] Change preprocessor directive for random solenoid firing (#26377) Fix define verification --- drivers/haptic/solenoid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/haptic/solenoid.c b/drivers/haptic/solenoid.c index ed2a886854e..d42d6219fbf 100644 --- a/drivers/haptic/solenoid.c +++ b/drivers/haptic/solenoid.c @@ -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]) {