MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / toInt16

Function toInt16

examples/drivers/HMC5883L/main.js:38–43  ·  view source on GitHub ↗
(high, low)

Source from the content-addressed store, hash-verified

36}, 250, true);
37
38function toInt16(high, low) {
39 let result = (high << 8) | low;
40 if (result > 32767)
41 result = result - 65536;
42 return result;
43}

Callers 1

main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected