raiden00pl commented on code in PR #15573: URL: https://github.com/apache/nuttx/pull/15573#discussion_r1918086477
########## drivers/sensors/sht4x_uorb.c: ########## @@ -451,337 +444,328 @@ static int16_t sht4x_calc_hum(uint16_t humidity) } #endif - return hum; + return (float)(hum / 100.0); } /**************************************************************************** - * Name: has_time_passed + * Name: sht4x_curtime * - * Description: - * Return true if curr >= start + secs_since_start + * Description: Helper to get current timestamp. + * + * Return: + * Timestamp in microseconds * ****************************************************************************/ -static bool has_time_passed(struct timespec curr, struct timespec start, - unsigned int secs_since_start) +static unsigned long sht4x_curtime(void) Review Comment: you can use common `sensor_get_timestamp()` instead of this function -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org