Updated lux output to 3 decimal places
@@ -115,7 +115,7 @@ tsl2591_shell_cmd_read(int argc, char **argv)
/* Get lux estimation */
lux = tsl2591_calculate_lux_f(&g_sensor_itf, full, ir, NULL);
console_printf("Lux: %lu.%lu\n", (uint32_t)lux,
- (uint32_t)(lux*100)%100);
+ (uint32_t)(lux*1000)%1000);
console_printf("Full: %u\n", full);
console_printf("IR: %u\n", ir);
}
