feat: pin sends to testowy channel (index 2), never primary (v0.1.3) (#5)
CI / build + unit (push) Successful in 36s
CI / build + unit (push) Successful in 36s
feat: pin sends to testowy channel (index 2), never primary (v0.1.3)
This commit was merged in pull request #5.
This commit is contained in:
+2
-1
@@ -64,6 +64,7 @@ export async function decodeFromRadio(
|
||||
export async function buildTextToRadio(
|
||||
to: number,
|
||||
text: string,
|
||||
channelIndex: number,
|
||||
): Promise<{ bytes: Uint8Array; id: number }> {
|
||||
const P = await loadProto();
|
||||
let id = Math.floor(Math.random() * 0x100000000) >>> 0;
|
||||
@@ -72,7 +73,7 @@ export async function buildTextToRadio(
|
||||
to,
|
||||
id,
|
||||
wantAck: true,
|
||||
channel: 0,
|
||||
channel: channelIndex,
|
||||
payloadVariant: {
|
||||
case: 'decoded',
|
||||
value: {
|
||||
|
||||
Reference in New Issue
Block a user