samples: fxos8700-hid: Don't use CONFIG_ namespace for non Kconfig
The sample was defining a #define with a CONFIG_ prefix but this wasn't coming from Kconfig. Change the define name not to conflict with the Kconfig CONFIG_ namespace. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
0d7df182e1
commit
2d9afbf423
|
@ -54,7 +54,7 @@ LOG_MODULE_REGISTER(main);
|
|||
|
||||
#ifdef CONFIG_FXOS8700
|
||||
#include <sensor.h>
|
||||
#define CONFIG_SENSOR_ACCEL_NAME DT_NXP_FXOS8700_0_LABEL
|
||||
#define SENSOR_ACCEL_NAME DT_NXP_FXOS8700_0_LABEL
|
||||
#endif
|
||||
|
||||
static const u8_t hid_report_desc[] = {
|
||||
|
@ -265,9 +265,9 @@ void main(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
accel = device_get_binding(CONFIG_SENSOR_ACCEL_NAME);
|
||||
accel = device_get_binding(SENSOR_ACCEL_NAME);
|
||||
if (accel == NULL) {
|
||||
LOG_ERR("Could not get %s device", CONFIG_SENSOR_ACCEL_NAME);
|
||||
LOG_ERR("Could not get %s device", SENSOR_ACCEL_NAME);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue