diff options
| author | Man, Jianting (Meco) <[email protected]> | 2023-06-18 22:36:53 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-18 22:36:53 -0400 |
| commit | 704554f1f9966ee830907c7674a676e2ea94a29c (patch) | |
| tree | 42f2bf1212fbc96f7206a108cabd6c9673bfb237 /components/drivers/include/rtdevice.h | |
| parent | 1758de1be1a8ed48f0dff7d30efb38ee65f6111c (diff) | |
[sensor-v2]将当前sensor框架revert回v1版本并独立为v2 (#7698)
Diffstat (limited to 'components/drivers/include/rtdevice.h')
| -rw-r--r-- | components/drivers/include/rtdevice.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h index 47a26238fa..afce028b0e 100644 --- a/components/drivers/include/rtdevice.h +++ b/components/drivers/include/rtdevice.h @@ -94,7 +94,11 @@ extern "C" { #endif /* RT_USING_PIN */ #ifdef RT_USING_SENSOR +#ifdef RT_USING_SENSOR_V2 +#include "drivers/sensor_v2.h" +#else #include "drivers/sensor.h" +#endif /* RT_USING_SENSOR_V2 */ #endif /* RT_USING_SENSOR */ #ifdef RT_USING_CAN |
