소스 검색

Fix emulator #ifdef check

Fred Sundvik 9 년 전
부모
커밋
9c955145f5
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      visualizer.c
  2. 1 1
      visualizer.h

+ 1 - 1
visualizer.c

@@ -414,7 +414,7 @@ static DECLARE_THREAD_FUNCTION(visualizerThread, arg) {
         gdispGFlush(LED_DISPLAY);
 #endif
 
-#if EMULATOR
+#ifdef EMULATOR
         draw_emulator();
 #endif
         // The animation can enable the visualizer

+ 1 - 1
visualizer.h

@@ -51,7 +51,7 @@ GDisplay* get_lcd_display(void);
 GDisplay* get_led_display(void);
 
 // For emulator builds, this function need to be implemented
-#if EMULATOR
+#ifdef EMULATOR
 void draw_emulator(void);
 #endif