File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 22
22
#define ID_RGR968 0x2d10
23
23
#define ID_THR228N 0xec40
24
24
#define ID_THN132N 0xec40 // same as THR228N but different packet size
25
- #define ID_AWR129 0xec41 // same as THR228N
25
+ #define ID_AWR129 0xec41 // similar to THR228N, but an extra 100s digit
26
26
#define ID_RTGN318 0x0cc3 // warning: id is from 0x0cc3 and 0xfcc3
27
27
#define ID_RTGN129 0x0cc3 // same as RTGN318 but different packet size
28
28
#define ID_THGR810 0xf824 // This might be ID_THGR81, but what's true is lost in (git) history
@@ -51,7 +51,9 @@ static float get_os_temperature(unsigned char *message)
51
51
{
52
52
float temp_c = 0 ;
53
53
temp_c = (((message [5 ] >> 4 ) * 100 ) + ((message [4 ] & 0x0f ) * 10 ) + ((message [4 ] >> 4 ) & 0x0f )) / 10.0F ;
54
- // Correct 0x0f to 0x08:
54
+ // The AWR129 BBQ thermometer has another digit to represent higher temperatures than what weather stations would observe.
55
+ temp_c += (message [5 ] & 0x07 ) * 100.0F ;
56
+ // 0x08 is the sign bit
55
57
if (message [5 ] & 0x08 ) {
56
58
temp_c = - temp_c ;
57
59
}
You can’t perform that action at this time.
0 commit comments