Skip to content

Commit

Permalink
Fix ts_offset type.
Browse files Browse the repository at this point in the history
  • Loading branch information
horacekj committed Nov 15, 2021
1 parent 26a5fa9 commit 4fb45b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/uni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ QJsonObject MtbUni::dvRepr(uint8_t dvi, const std::vector<uint8_t> &data) const
return {};

uint16_t raw = (data[0] << 8) | data[1];
uint8_t ts_offset = data[2];
int8_t ts_offset = data[2];
uint8_t ts_gain = data[3];
float temp = ((raw-(273+100-ts_offset))*128 / ts_gain) + 25;
return {
Expand Down

0 comments on commit 4fb45b8

Please sign in to comment.