File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ static void alarm_cb(__attribute__ ((unused)) uint32_t now,
5959 if (proximity ) printf ("Proximity: %u\n" , prox_reading );
6060 if (sound_pressure ) printf ("Sound Pressure: %u\n" , sound_pressure_reading );
6161 if (moisture ) printf ("Moisture: %d%%\n" , mois /100 );
62- if (rainfall ) printf ("Rainfall: %lumm\n" , rain );
62+ if (rainfall ) printf ("Rainfall: %lumm\n" , rain / 1000 );
6363
6464 /* *INDENT-ON* */
6565
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ extern "C" {
1111//
1212// ## Arguments
1313//
14- // - `rainfall`: Set to the mms of rainfall in the specified number of hours.
15- // - `hours`: The number of hours to get the rainfall data from. 1 to 24 hours
16- // are valid values.
14+ // - `rainfall`: Set to the ums of rainfall in the specified number of hours.
15+ // - `hours`: The number of hours to get the rainfall data from. 1 to 24
16+ // hours are valid values.
1717//
1818// ## Return Value
1919//
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ extern "C" {
1010// Function signature for rainfall data callback.
1111//
1212// - `arg1` (`int`): Returncode indicating status from sampling the sensor.
13- // - `arg2` (`uint32_t`): the number of mm of rain in the time period specified
13+ // - `arg2` (`uint32_t`): the number of um of rain in the time period specified
1414typedef void (* libtock_rainfall_callback )(returncode_t , uint32_t );
1515
1616// Start a rainfall measurement. The reading will be provided via the callback.
You can’t perform that action at this time.
0 commit comments