aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/weatherstation_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/weatherstation_test.c b/src/weatherstation_test.c
index b2cfab4..5cbe258 100644
--- a/src/weatherstation_test.c
+++ b/src/weatherstation_test.c
@@ -54,8 +54,8 @@ printf("sun_east=%d\n", mbregister[2]);
printf("sun_west=%d\n", mbregister[3]);
printf("light=%d\n", mbregister[4]);
printf("wind=%d\n", mbregister[5]);
-printf("GPS/RTC=%d\n", mbregister[6]&255);
-printf("rain=%d\n", mbregister[6]>>8);
+printf("rain=%d\n", mbregister[6]&1);
+printf("GPS/RTC=%d\n", mbregister[6]>>8);
printf("day=%d\n", mbregister[7]);
printf("month=%d\n", mbregister[8]);
printf("year=%d\n", mbregister[9]);