aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-05-30 00:47:33 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2012-05-30 00:54:11 +0100
commit8af07ddee9d521709ff3b950af728ec6c6b19efc (patch)
treee93ce1873d1964d47013113b3ae3fcffabfe6c99
parent8c581faab5dec6fd5b4b9e47946f54b8c4e70bce (diff)
downloadverteco-8af07ddee9d521709ff3b950af728ec6c6b19efc.tar.gz
weatherstation_test: invert Rain/RTC
-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]);