diff --git a/src/devices/rosstech_dcu706.c b/src/devices/rosstech_dcu706.c index a82ec97a0..0b6a8bdc4 100644 --- a/src/devices/rosstech_dcu706.c +++ b/src/devices/rosstech_dcu706.c @@ -88,9 +88,9 @@ static int rosstech_dcu706_decode(r_device *decoder, bitbuffer_t *bitbuffer) uint8_t msg_type = (msg[0] << 1) | (msg[1] >> 7); // S uint8_t id_high = (msg[1] << 4) | (msg[2] >> 4); uint8_t id_low = (msg[2] << 7) | (msg[3] >> 1); - uint16_t id = (id_high << 8) | id_low; // I - uint8_t temp_f = (msg[4] << 2) | (msg[5] >> 6); // T - uint8_t checksum = (msg[5] << 5) | (msg[6] >> 3); // C + uint16_t id = (id_high << 8) | id_low; // I + uint8_t temp_f = (msg[4] << 2) | (msg[5] >> 6); // T + uint8_t checksum = (msg[5] << 5) | (msg[6] >> 3); // C // Create a uint8_t array to hold the extracted values uint8_t extracted_data[4]; @@ -108,9 +108,9 @@ static int rosstech_dcu706_decode(r_device *decoder, bitbuffer_t *bitbuffer) /* clang-format off */ data_t *data = data_make( "model", "Model", DATA_STRING, "Rosstech-Spa", - "id", "ID", DATA_FORMAT, "%04x", DATA_INT, id, + "id", "ID", DATA_FORMAT, "%04x", DATA_INT, id, "msg_type", "Transmission Type", DATA_STRING, msg_type == 0xba ? "Data" : "Bond", - "temperature_F", "Temperature", DATA_FORMAT, "%d °C", DATA_INT, temp_f, + "temperature_F", "Temperature", DATA_FORMAT, "%d F", DATA_INT, temp_f, "mic", "Integrity", DATA_STRING, "CHECKSUM", NULL); /* clang-format on */