Procházet zdrojové kódy

Fix preprocessor condition for SPLIT_HAPTIC_ENABLE (#20411)

Giuseppe Rota před 3 roky
rodič
revize
e77699a58a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      quantum/split_common/transport.h

+ 1 - 1
quantum/split_common/transport.h

@@ -213,7 +213,7 @@ typedef struct _split_shared_memory_t {
     bool watchdog_pinged;
     bool watchdog_pinged;
 #endif // defined(SPLIT_WATCHDOG_ENABLE)
 #endif // defined(SPLIT_WATCHDOG_ENABLE)
 
 
-#if defined(HAPTIC_ENABLE)
+#if defined(HAPTIC_ENABLE) && defined(SPLIT_HAPTIC_ENABLE)
     split_slave_haptic_sync_t haptic_sync;
     split_slave_haptic_sync_t haptic_sync;
 #endif // defined(HAPTIC_ENABLE)
 #endif // defined(HAPTIC_ENABLE)