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,
59
59
if (proximity ) printf ("Proximity: %u\n" , prox_reading );
60
60
if (sound_pressure ) printf ("Sound Pressure: %u\n" , sound_pressure_reading );
61
61
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 );
63
63
64
64
/* *INDENT-ON* */
65
65
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ extern "C" {
11
11
//
12
12
// ## Arguments
13
13
//
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.
17
17
//
18
18
// ## Return Value
19
19
//
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ extern "C" {
10
10
// Function signature for rainfall data callback.
11
11
//
12
12
// - `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
14
14
typedef void (* libtock_rainfall_callback )(returncode_t , uint32_t );
15
15
16
16
// Start a rainfall measurement. The reading will be provided via the callback.
You can’t perform that action at this time.
0 commit comments