Compat with latest JS lib

This commit is contained in:
Sacha Weatherstone
2023-01-19 19:46:29 +10:00
parent 8ddb900f81
commit d538ba5a9d
51 changed files with 800 additions and 1027 deletions
+10 -10
View File
@@ -49,27 +49,27 @@ export const ImportDialog = ({
const apply = () => {
channelSet?.settings.map((ch, index) => {
connection?.setChannel({
channel: {
connection?.setChannel(
new Protobuf.Channel({
index,
role:
index === 0
? Protobuf.Channel_Role.PRIMARY
: Protobuf.Channel_Role.SECONDARY,
settings: ch
}
});
})
);
});
if (channelSet?.loraConfig) {
connection?.setConfig({
config: {
connection?.setConfig(
new Protobuf.Config({
payloadVariant: {
oneofKind: "lora",
lora: channelSet.loraConfig
case: "lora",
value: channelSet.loraConfig
}
}
});
})
);
}
};