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