Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Moddable-OpenSource/moddable
/ #twoC16
Method
#twoC16
modules/drivers/sensors/tmp117/tmp117.js:167–169 ·
view source on GitHub ↗
(val)
Source
from the content-addressed store, hash-verified
165
this.#io = undefined;
166
}
167
#twoC16(val) {
168
return
(val > 32768) ? -(65535 - val + 1) : val;
169
}
170
sample() {
171
const
io = this.#io;
172
let
conf = io.readUint16(Register.TMP117_CONF, true);
Callers
1
sample
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected