We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81bd7cb commit 065b33aCopy full SHA for 065b33a
src/util.ts
@@ -15,7 +15,7 @@ export const integerToUint16 = (value: number): Buffer => {
15
export const booleanToUint16 = (value: boolean): Buffer => integerToUint16(value ? 1 : 0);
16
17
export const write = async (bus: PromisifiedBus, buf: Buffer): Promise<void> => {
18
- bus.i2cWrite(SCD30_ADDRESS, buf.length, buf);
+ await bus.i2cWrite(SCD30_ADDRESS, buf.length, buf);
19
};
20
21
export const read = async (bus: PromisifiedBus, length: number): Promise<Buffer> => {
0 commit comments