Use relative paths for panic.h

Avoids adding the main directory as an include path
pull/110/head
Yuri D'Elia 2021-09-02 11:39:25 +02:00 committed by DRracer
parent ee8c80e5c4
commit e7cba346da
3 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,5 @@
#include "motion.h" #include "motion.h"
#include "panic.h" #include "../panic.h"
// TODO: use proper timer abstraction // TODO: use proper timer abstraction
#ifdef __AVR__ #ifdef __AVR__

View File

@ -1,7 +1,5 @@
# common include and source directories # common include and source directories
set(include_common ${CMAKE_SOURCE_DIR}/src/modules ${CMAKE_SOURCE_DIR}/src/hal set(include_common ${CMAKE_SOURCE_DIR}/src/modules ${CMAKE_SOURCE_DIR}/src/hal)
${CMAKE_SOURCE_DIR}/src
)
set(source_common set(source_common
${CMAKE_SOURCE_DIR}/src/modules/motion.cpp ${CMAKE_SOURCE_DIR}/src/modules/motion.cpp
${CMAKE_SOURCE_DIR}/src/modules/speed_table.cpp ${CMAKE_SOURCE_DIR}/src/modules/speed_table.cpp

View File

@ -1,4 +1,4 @@
#include "panic.h" #include "../panic.h"
// For retrival during tests // For retrival during tests
ErrorCode panic_code = ErrorCode::RUNNING; ErrorCode panic_code = ErrorCode::RUNNING;