From ff877ec580992fb4f0886073f6aefba0924ae53a Mon Sep 17 00:00:00 2001 From: losinshi Date: Mon, 11 Dec 2006 09:29:02 +0000 Subject: [PATCH] third and hopefully last fix for negative tempatatures git-svn-id: file:///home/jan/tmp/wetterstation/trunk@200 dd492736-c11a-0410-ad51-8c26713eaf7f --- deamon/seriell/process.c | 6 +++--- debian/changelog | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/deamon/seriell/process.c b/deamon/seriell/process.c index 7a7427b..6afe0d7 100644 --- a/deamon/seriell/process.c +++ b/deamon/seriell/process.c @@ -36,7 +36,7 @@ #include "write.h" /* Funktionsdefinitionen */ -static u_char get_bit(u_char, u_char); +static u_char get_bit(unsigned int, u_char); static u_char get_2bits(u_char, u_char); static u_char get_hi_nibble(u_char); static u_char get_lo_nibble(u_char); @@ -301,8 +301,8 @@ static unsigned int convert_unsigned_int(u_char hi_byte, u_char lo_byte){ /* Ein Bit vom Byte */ -static u_char get_bit(u_char byte, u_char bit){ - return byte >> bit & 0x01; +static u_char get_bit(unsigned int byte, u_char bit){ + return (byte >> bit) & 0x01; } /* 2 Bit vom Byte */ diff --git a/debian/changelog b/debian/changelog index 056501b..6474674 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +weatherstation (1.0.4-2) stable; urgency=low + + * third try to fix negative tempatatures (seems to be correct!) + + -- Jan Losinski Thu, 2 Nov 2006 09:38:14 +0100 + weatherstation (1.0.4-1) stable; urgency=low * second try to fix negative tempatatures