Skip to content

Commit

Permalink
Remove preprocessor warnings for not enabling float
Browse files Browse the repository at this point in the history
  • Loading branch information
wm-eisos authored and mah-eiSmart committed Sep 7, 2023
1 parent 0aee20e commit e3e2797
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,6 @@ extern "C"

int8_t HIDS_convertHumidity_float(WE_sensorInterface_t* sensorInterface, int16_t rawHumidity, float *humidity);
int8_t HIDS_convertTemperature_float(WE_sensorInterface_t* sensorInterface, int16_t rawTemp, float *tempDegC);
#else
#warning "WSEN_HIDS sensor driver: Float support is turned off by default. Define WE_USE_FLOAT to enable float support."
#endif /* WE_USE_FLOAT */

int8_t HIDS_getHumidity_int8(WE_sensorInterface_t* sensorInterface, int8_t *humidity);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1231,8 +1231,6 @@ extern "C"
int8_t ISDS_getAngularRateY_float(WE_sensorInterface_t* sensorInterface, float *yRate);
int8_t ISDS_getAngularRateZ_float(WE_sensorInterface_t* sensorInterface, float *zRate);
int8_t ISDS_getAngularRates_float(WE_sensorInterface_t* sensorInterface, float *xRate, float *yRate, float *zRate);
#else
#warning "WSEN_ISDS sensor driver: Float support is turned off by default. Define WE_USE_FLOAT to enable float support."
#endif /* WE_USE_FLOAT */
int8_t ISDS_getAngularRateX_int(WE_sensorInterface_t* sensorInterface, int32_t *xRate);
int8_t ISDS_getAngularRateY_int(WE_sensorInterface_t* sensorInterface, int32_t *yRate);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,6 @@ extern "C"
float ITDS_convertAccelerationFs4g_float(int16_t acc);
float ITDS_convertAccelerationFs8g_float(int16_t acc);
float ITDS_convertAccelerationFs16g_float(int16_t acc);
#else
#warning "WSEN_ITDS sensor driver: Float support is turned off by default. Define WE_USE_FLOAT to enable float support."
#endif /* WE_USE_FLOAT */

int8_t ITDS_getAccelerationX_int(WE_sensorInterface_t* sensorInterface, int16_t *xAcc);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,6 @@ extern "C"

float PADS_convertPressure_float(int32_t rawPres);
float PADS_convertDifferentialPressure_float(int32_t rawPres);
#else
#warning "WSEN_PADS sensor driver: Float support is turned off by default. Define WE_USE_FLOAT to enable float support."
#endif /* WE_USE_FLOAT */

#ifdef __cplusplus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ int8_t PDUS_getPressure_float(WE_sensorInterface_t* sensorInterface, PDUS_Sensor
int8_t PDUS_getPressureAndTemperature_float(WE_sensorInterface_t* sensorInterface, PDUS_SensorType_t type, float *presskPa, float *tempDegC);

int8_t PDUS_convertPressureToFloat(PDUS_SensorType_t type, uint16_t rawPressure, float *presskPa);
#else
#warning "WSEN_PDUS sensor driver: Float support is turned off by default. Define WE_USE_FLOAT to enable float support."
#endif // WE_USE_FLOAT

#ifdef __cplusplus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ extern "C"

#ifdef WE_USE_FLOAT
int8_t TIDS_getTemperature(WE_sensorInterface_t* sensorInterface, float *tempDegC);
#else
#warning "WSEN_TIDS sensor driver: Float support is turned off by default. Define WE_USE_FLOAT to enable float support."
#endif /* WE_USE_FLOAT */

#ifdef __cplusplus
Expand Down

0 comments on commit e3e2797

Please sign in to comment.