feat(icom): offer the bands the connected radio actually has
The band row was hardwired to 160-6 m, so an IC-9700 - the one radio in the range with no HF at all - showed ten dead buttons and none of 2 m, 70 cm or 23 cm. bandsFor(model) follows the model, exactly as attOptions already did for the attenuator steps. bandOfHz's labels had to move with it: it returned '70' where the button says '70cm', so the current-band highlight could never have matched, and it knew nothing of 23 cm.
This commit is contained in:
@@ -3267,6 +3267,20 @@ export namespace main {
|
||||
this.text = source["text"];
|
||||
}
|
||||
}
|
||||
export class WebPublishStatus {
|
||||
last_run: string;
|
||||
last_err: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new WebPublishStatus(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.last_run = source["last_run"];
|
||||
this.last_err = source["last_err"];
|
||||
}
|
||||
}
|
||||
export class WinkeyerSettings {
|
||||
enabled: boolean;
|
||||
port: string;
|
||||
@@ -4813,6 +4827,53 @@ export namespace udp {
|
||||
|
||||
}
|
||||
|
||||
export namespace webpub {
|
||||
|
||||
export class Config {
|
||||
enabled: boolean;
|
||||
format: string;
|
||||
folder: string;
|
||||
file_name: string;
|
||||
title: string;
|
||||
count: number;
|
||||
interval_min: number;
|
||||
columns: string[];
|
||||
ftp_enabled: boolean;
|
||||
ftp_host: string;
|
||||
ftp_port: number;
|
||||
ftp_user: string;
|
||||
ftp_password: string;
|
||||
ftp_tls: boolean;
|
||||
ftp_folder: string;
|
||||
ftp_file_name: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new Config(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.enabled = source["enabled"];
|
||||
this.format = source["format"];
|
||||
this.folder = source["folder"];
|
||||
this.file_name = source["file_name"];
|
||||
this.title = source["title"];
|
||||
this.count = source["count"];
|
||||
this.interval_min = source["interval_min"];
|
||||
this.columns = source["columns"];
|
||||
this.ftp_enabled = source["ftp_enabled"];
|
||||
this.ftp_host = source["ftp_host"];
|
||||
this.ftp_port = source["ftp_port"];
|
||||
this.ftp_user = source["ftp_user"];
|
||||
this.ftp_password = source["ftp_password"];
|
||||
this.ftp_tls = source["ftp_tls"];
|
||||
this.ftp_folder = source["ftp_folder"];
|
||||
this.ftp_file_name = source["ftp_file_name"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export namespace winkeyer {
|
||||
|
||||
export class Status {
|
||||
|
||||
Reference in New Issue
Block a user