Skip to content

Commit

Permalink
Biome format
Browse files Browse the repository at this point in the history
  • Loading branch information
thebentern committed Oct 29, 2024
1 parent f764f15 commit 76e2a32
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions src/meshDevice.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
import { Logger } from 'tslog';

import {
create,
fromBinary,
toBinary,
} from '@bufbuild/protobuf';
import * as Protobuf from '@meshtastic/protobufs';

import {
broadcastNum,
minFwVer,
} from './constants.ts';
import * as Types from './types.ts';
import {
EventSystem,
Queue,
Xmodem,
} from './utils/index.ts';
import { Logger } from "tslog";

import { create, fromBinary, toBinary } from "@bufbuild/protobuf";
import * as Protobuf from "@meshtastic/protobufs";

import { broadcastNum, minFwVer } from "./constants.ts";
import * as Types from "./types.ts";
import { EventSystem, Queue, Xmodem } from "./utils/index.ts";

/** Base class for connection methods to extend */
export abstract class MeshDevice {
Expand Down Expand Up @@ -361,7 +350,7 @@ export abstract class MeshDevice {
public async enterDfuMode(): Promise<number> {
this.log.debug(
Types.Emitter[Types.Emitter.EnterDfuMode],
'🔌 Entering DFU mode',
"🔌 Entering DFU mode",
);

const enterDfuModeRequest = create(Protobuf.Admin.AdminMessageSchema, {
Expand All @@ -373,7 +362,7 @@ export abstract class MeshDevice {
return await this.sendPacket(
toBinary(Protobuf.Admin.AdminMessageSchema, enterDfuModeRequest),
Protobuf.Portnums.PortNum.ADMIN_APP,
"self"
"self",
);
}

Expand Down

0 comments on commit 76e2a32

Please sign in to comment.