Use relative paths for panic.h
Avoids adding the main directory as an include pathpull/110/head
parent
ee8c80e5c4
commit
e7cba346da
|
|
@ -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__
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue