Skip to content

Commit

Permalink
htu21d final adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Nascimento committed Oct 25, 2017
1 parent 5e1adbd commit fd913a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 0 additions & 15 deletions Libs/htu21d/nrf5-htu21d-drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,5 @@ ret_code_t htu21d_drv_convert_data(htu21d_t * htu);
ret_code_t htu21d_drv_set_resolution(htu21d_t * htu, htu21d_resolution_t resolution);
ret_code_t htu21d_drv_reset_sensor(htu21d_t * htu);

#if 0
ret_code_t htu21d_drv_begin(nrf_drv_twi_t * p_ext_twi, htu21d_resolution_t res);
ret_code_t htu21d_drv_convert_temp_hold();
ret_code_t htu21d_drv_convert_temp_no_hold();
ret_code_t htu21d_drv_convert_hum_hold();
ret_code_t htu21d_drv_convert_hum_no_hold();
ret_code_t htu21d_drv_set_resolution(htu21d_resolution_t res);
htu21d_resolution_t htu21d_drv_get_resolution();
ret_code_t htu21d_drv_soft_reset();
uint16_t htu21d_drv_get_temp_conversion_time();
uint16_t htu21d_drv_get_hum_conversion_time();
uint16_t htu21d_calculate_rh(uint16_t buffer);
int16_t htu21d_calculate_temperature(uint16_t buffer);
ret_code_t htu21d_get_last_conversion(uint16_t * buffer);
#endif

#endif // NRF5_HTU21D_LIB_H
2 changes: 1 addition & 1 deletion example/htu21d_example/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ int main(void)
NRF_LOG_FLUSH();
twi_init();

htu21d_drv_begin(sensor_callback);
htu21d_drv_begin((htu21d_event_cb_t) sensor_callback);

htu21d_drv_start_sensor(&sensor, &m_twi, HTU21D_RES_RH_12_TEMP_14);

Expand Down

0 comments on commit fd913a5

Please sign in to comment.