mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #11733 from nmeum/fix-native-build
boards/native: fix undefinied reference to qdecs_value
This commit is contained in:
commit
3f25c43204
@ -20,6 +20,8 @@
|
||||
#include <board.h>
|
||||
#include <log.h>
|
||||
|
||||
#ifdef MODULE_PERIPH_QDEC
|
||||
|
||||
extern int32_t qdecs_value[QDEC_NUMOF];
|
||||
|
||||
void native_motor_driver_qdec_simulation(
|
||||
@ -52,3 +54,5 @@ void native_motor_driver_qdec_simulation(
|
||||
motor_driver, motor_id);
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* MODULE_PERIPH_QDEC */
|
@ -141,7 +141,7 @@ void native_motor_driver_qdec_simulation( \
|
||||
int32_t pwm_duty_cycle);
|
||||
|
||||
/* C++ standard do not support designated initializers */
|
||||
#ifndef __cplusplus
|
||||
#if !(defined __cplusplus) && (defined MODULE_PERIPH_QDEC)
|
||||
|
||||
/**
|
||||
* @name Describe DC motors with PWM channel and GPIOs
|
||||
|
Loading…
Reference in New Issue
Block a user