Skip to content

Commit

Permalink
refactor: rework initialization sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Jan 17, 2024
1 parent 79b1a6a commit 8f22fd1
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 220 deletions.
12 changes: 0 additions & 12 deletions packages/core/src/capabilities/Protocols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,6 @@ export enum LongRangeChannel {
// 0x03..0xFF are reserved and must not be used
}

export function longRangeChannelToString(channel: LongRangeChannel): string {
switch (channel) {
case LongRangeChannel.Unknown:
return "Unknown";
case LongRangeChannel.A:
return "Channel A (912 MHz)";
case LongRangeChannel.B:
return "Channel B (920 MHz)";
}
return `Unknown (${num2hex(channel)})`;
}

export function isLongRangeNodeId(nodeId: number): boolean {
return nodeId > 255;
}
Loading

0 comments on commit 8f22fd1

Please sign in to comment.