Skip to content

Commit

Permalink
Make defines.h to be processed in debug.h
Browse files Browse the repository at this point in the history
  • Loading branch information
unlogisch04 committed Oct 30, 2024
1 parent 5eb7e6e commit 205f7f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
#ifndef SLIMEVR_DEBUG_H_
#define SLIMEVR_DEBUG_H_
#include "consts.h"
#include "defines.h"
#include "defines_bmi160.h"
#include "defines_sensitivity.h"
#include "logging/Level.h"

#ifndef IMU_MPU6050_RUNTIME_CALIBRATION
Expand Down
6 changes: 1 addition & 5 deletions src/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
#define SLIMEVR_GLOBALS_H_

#include <Arduino.h>
#include "consts.h"
#include "debug.h"
#include "defines.h"
#include "defines_bmi160.h"
#include "defines_sensitivity.h"

#ifndef SECOND_IMU
#define SECOND_IMU IMU
Expand All @@ -47,7 +43,7 @@
#if defined(LED_PIN)
// LED_PIN is defined
#if (LED_PIN < 0) || (LED_PIN >= LED_OFF)
#define ENABLE_LEDS false
#define ENABLE_LEDS false
#else
#define ENABLE_LEDS true
#endif
Expand Down

0 comments on commit 205f7f4

Please sign in to comment.