Browse Source

Change preprocessor directive for random solenoid firing (#26377)

Fix define verification
Cipulot 1 week ago
parent
commit
a000551018
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/haptic/solenoid.c

+ 1 - 1
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]) {