third and hopefully last fix for negative tempatatures

git-svn-id: file:///home/jan/tmp/wetterstation/trunk@200 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
losinshi 2006-12-11 09:29:02 +00:00
parent 774b960f05
commit ff877ec580
2 changed files with 9 additions and 3 deletions

View File

@ -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 */

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
weatherstation (1.0.4-2) stable; urgency=low
* third try to fix negative tempatatures (seems to be correct!)
-- Jan Losinski <losinski@wh2.tu-dresden.de> Thu, 2 Nov 2006 09:38:14 +0100
weatherstation (1.0.4-1) stable; urgency=low
* second try to fix negative tempatatures