Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 9ae03a1

Browse files
committed
fix: fixed issues preventing app from building
1 parent ebc7f14 commit 9ae03a1

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"license": "GPL-3.0-only",
66
"scripts": {
77
"build": "tsup && pnpm biome format .",
8+
"lint": "pnpm biome check",
9+
"lint:fix": "pnpm biome check --fix",
10+
"format": "pnpm biome format .",
11+
"format:fix": "pnpm biome format . --fix",
812
"generate:docs": "typedoc src/index.ts"
913
},
1014
"keywords": [

src/adapters/bleConnection.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ export class BleConnection extends MeshDevice {
218218
* @throws Error if reading fails
219219
*/
220220
protected async readFromRadio(): Promise<void> {
221-
222221
try {
223222
let hasMoreData = true;
224223
while (hasMoreData && this.fromRadioCharacteristic) {

src/adapters/serialConnection.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class SerialConnection extends MeshDevice {
2525
* through a transform stream (https://stackoverflow.com/questions/71262432) */
2626
private pipePromise?: Promise<void>;
2727

28-
/* Reference for the heartbeat ping interval so it can be canceled on disconnect. */
28+
/* Reference for the heartbeat ping interval so it can be canceled on disconnect. */
2929
private heartbeatInterval?: ReturnType<typeof setInterval> | undefined;
3030

3131
/**
@@ -161,9 +161,9 @@ export class SerialConnection extends MeshDevice {
161161
// The firmware requires at least one ping per 15 minutes, so this should be more than enough.
162162
this.heartbeatInterval = setInterval(() => {
163163
this.heartbeat().catch((err) => {
164-
console.error('Heartbeat error', err);
164+
console.error("Heartbeat error", err);
165165
});
166-
}, 60*1000);
166+
}, 60 * 1000);
167167
} else {
168168
console.log("not readable or writable");
169169
}
@@ -193,11 +193,11 @@ export class SerialConnection extends MeshDevice {
193193
if (this.port?.readable) {
194194
await this.port?.close();
195195
}
196-
196+
197197
// stop the interval when disconnecting.
198198
if (this.heartbeatInterval) {
199199
clearInterval(this.heartbeatInterval);
200-
this.heartbeatInterval = undefined;
200+
this.heartbeatInterval = undefined;
201201
}
202202
// -------
203203
this.updateDeviceStatus(Types.DeviceStatusEnum.DeviceDisconnected);

0 commit comments

Comments
 (0)