MCPcopy Create free account
hub / github.com/EdgeTX/buddy / hexString

Function hexString

src/shared/tools.ts:9–17  ·  view source on GitHub ↗
(num: number)

Source from the content-addressed store, hash-verified

7 new Array<number>(num).fill(1).map((_, i) => i);
8
9export const hexString = (num: number): string => {
10 const byteCount = Math.ceil(16 / 8);
11
12 // eslint-disable-next-line no-bitwise
13 return `0x${(num >>> 0)
14 .toString(16)
15 .toUpperCase()
16 .padStart(byteCount * 2, "0")}`;
17};
18
19export const arrayFromAsync = async <T>(
20 iterator: AsyncIterableIterator<T>

Callers 2

usbDeviceIdFunction · 0.90
usbDeviceToFlashDeviceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected