mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 23:07:59 +00:00
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:
@@ -36,7 +36,7 @@
|
|||||||
#include "write.h"
|
#include "write.h"
|
||||||
|
|
||||||
/* Funktionsdefinitionen */
|
/* 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_2bits(u_char, u_char);
|
||||||
static u_char get_hi_nibble(u_char);
|
static u_char get_hi_nibble(u_char);
|
||||||
static u_char get_lo_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 */
|
/* Ein Bit vom Byte */
|
||||||
static u_char get_bit(u_char byte, u_char bit){
|
static u_char get_bit(unsigned int byte, u_char bit){
|
||||||
return byte >> bit & 0x01;
|
return (byte >> bit) & 0x01;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 2 Bit vom Byte */
|
/* 2 Bit vom Byte */
|
||||||
|
|||||||
Vendored
+6
@@ -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
|
weatherstation (1.0.4-1) stable; urgency=low
|
||||||
|
|
||||||
* second try to fix negative tempatatures
|
* second try to fix negative tempatatures
|
||||||
|
|||||||
Reference in New Issue
Block a user