mirror of
https://github.com/merbanan/rtl_433.git
synced 2026-04-23 11:07:09 -04:00
Fix parse error on ARM compiling with GCC due to lack of parens. (#490)
This commit is contained in:
committed by
Benjamin Larsson
parent
91709a1229
commit
d142017ef4
@@ -727,12 +727,12 @@ static int acurite_606_callback(bitbuffer_t *bitbuf) {
|
||||
// Processing the temperature:
|
||||
// Upper 4 bits are stored in nibble 1, lower 8 bits are stored in nibble 2
|
||||
// upper 4 bits of nibble 1 are reserved for other usages (e.g. battery status)
|
||||
temp = (int16_t)((uint16_t)(bb[1][1] << 12) | bb[1][2] << 4);
|
||||
temp = (int16_t)((uint16_t)(bb[1][1] << 12) | (bb[1][2] << 4));
|
||||
temp = temp >> 4;
|
||||
|
||||
temperature = temp / 10.0;
|
||||
sensor_id = bb[1][0];
|
||||
battery = bb[1][1] & 0x8f >> 7;
|
||||
battery = (bb[1][1] & 0x80) >> 7;
|
||||
|
||||
data = data_make("time", "", DATA_STRING, time_str,
|
||||
"model", "", DATA_STRING, "Acurite 606TX Sensor",
|
||||
|
||||
Reference in New Issue
Block a user