mirror of
git://soft.sys114.com/WiringPi2-Python
synced 2026-02-07 02:29:47 +09:00
Updated to latest WiringPi
This commit is contained in:
@@ -56,6 +56,11 @@ int main (void)
|
||||
{
|
||||
temp = newTemp ;
|
||||
rh = newRh ;
|
||||
if ((temp & 0x8000) != 0) // Negative
|
||||
{
|
||||
temp &= 0x7FFF ;
|
||||
temp = -temp ;
|
||||
}
|
||||
printf ("Temp: %5.1f, RH: %5.1f%%\n", temp / 10.0, rh / 10.0) ;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user