From 8af07ddee9d521709ff3b950af728ec6c6b19efc Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Wed, 30 May 2012 00:47:33 +0100 Subject: weatherstation_test: invert Rain/RTC --- src/weatherstation_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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]); -- cgit v1.2.3