Skip to content

Commit

Permalink
Convert unsigned temp to signed temp 1byte
Browse files Browse the repository at this point in the history
Because up to 128 C it is positive, but above it is negative temp
  • Loading branch information
megastary committed Oct 7, 2024
1 parent 300507b commit 1dad64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/esl_mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ router.get('/', ensureAuthenticated, checkKiosk, function (req, res) {
type: item.type,
networkStatus: item.networkStatus,
updateStatus: item.updateStatus,
temperature: item.temperature,
temperature: (item.temperature << 24) >> 24,
requestDate: item.requestDate
? moment(item.requestDate).format('LLLL')
: null,
Expand Down

0 comments on commit 1dad64b

Please sign in to comment.