Can't reproduce issue #13. Appeared on installation of unknown version. Close #13 for now.

This commit is contained in:
mmcwilliams 2019-05-28 10:33:31 -04:00
parent 1b3f554492
commit 5c9091d957
10 changed files with 38 additions and 30 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "1.4.2", "version": "1.4.6",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {
@ -88,7 +88,7 @@
"camera_second_forward": "C2F", "camera_second_forward": "C2F",
"camera_second_backward": "C2B", "camera_second_backward": "C2B",
"cameras_forward": "CCF", "cameras_forward": "CCF",
"cameras_backward" : "CCB", "cameras_backward": "CCB",
"camera_forward_camera_second_backward": "CFCB", "camera_forward_camera_second_backward": "CFCB",
"camera_backward_camera_second_forward": "CBCF", "camera_backward_camera_second_forward": "CBCF",
"projector_second_forward": "P2F", "projector_second_forward": "P2F",
@ -148,9 +148,9 @@
"camera_second_backward": "2", "camera_second_backward": "2",
"camera_second": "3", "camera_second": "3",
"cameras": "4", "cameras": "4",
"camera_projectors_identifier" : "5", "camera_projectors_identifier": "5",
"cameras_projector_identifier" : "6", "cameras_projector_identifier": "6",
"cameras_projectors_identifier" : "7" "cameras_projectors_identifier": "7"
} }
} }
} }

View File

@ -21,7 +21,8 @@ class Devices {
this.init(); this.init();
} }
/** /**
* * Initialize the log for "devices". Establish an ipc connection to the UI.
* Start listening on that ipc connection.
**/ **/
async init() { async init() {
this.log = await Log({ label: 'devices' }); this.log = await Log({ label: 'devices' });
@ -29,13 +30,14 @@ class Devices {
this.listen(); this.listen();
} }
/** /**
* * Listen to the "profile" channel for messages from the UI.
**/ **/
listen() { listen() {
this.ipc.on('profile', this.listener.bind(this)); this.ipc.on('profile', this.listener.bind(this));
} }
/** /**
* * The "profile" channel callback. If a profile is changed, set it in the
* local settings object.
**/ **/
listener(event, arg) { listener(event, arg) {
this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false); this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false);

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
{ {
"version": "1.4.2", "version": "1.4.6",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {
@ -88,7 +88,7 @@
"camera_second_forward": "C2F", "camera_second_forward": "C2F",
"camera_second_backward": "C2B", "camera_second_backward": "C2B",
"cameras_forward": "CCF", "cameras_forward": "CCF",
"cameras_backward" : "CCB", "cameras_backward": "CCB",
"camera_forward_camera_second_backward": "CFCB", "camera_forward_camera_second_backward": "CFCB",
"camera_backward_camera_second_forward": "CBCF", "camera_backward_camera_second_forward": "CBCF",
"projector_second_forward": "P2F", "projector_second_forward": "P2F",
@ -148,9 +148,9 @@
"camera_second_backward": "2", "camera_second_backward": "2",
"camera_second": "3", "camera_second": "3",
"cameras": "4", "cameras": "4",
"camera_projectors_identifier" : "5", "camera_projectors_identifier": "5",
"cameras_projector_identifier" : "6", "cameras_projector_identifier": "6",
"cameras_projectors_identifier" : "7" "cameras_projectors_identifier": "7"
} }
} }
} }

View File

@ -21,7 +21,8 @@ class Devices {
this.init(); this.init();
} }
/** /**
* * Initialize the log for "devices". Establish an ipc connection to the UI.
* Start listening on that ipc connection.
**/ **/
async init() { async init() {
this.log = await Log({ label: 'devices' }); this.log = await Log({ label: 'devices' });
@ -29,13 +30,14 @@ class Devices {
this.listen(); this.listen();
} }
/** /**
* * Listen to the "profile" channel for messages from the UI.
**/ **/
listen() { listen() {
this.ipc.on('profile', this.listener.bind(this)); this.ipc.on('profile', this.listener.bind(this));
} }
/** /**
* * The "profile" channel callback. If a profile is changed, set it in the
* local settings object.
**/ **/
listener(event, arg) { listener(event, arg) {
this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false); this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false);

File diff suppressed because one or more lines are too long

View File

@ -21,7 +21,8 @@ class Devices {
this.init(); this.init();
} }
/** /**
* * Initialize the log for "devices". Establish an ipc connection to the UI.
* Start listening on that ipc connection.
**/ **/
async init() { async init() {
this.log = await Log({ label: 'devices' }); this.log = await Log({ label: 'devices' });
@ -29,13 +30,14 @@ class Devices {
this.listen(); this.listen();
} }
/** /**
* * Listen to the "profile" channel for messages from the UI.
**/ **/
listen() { listen() {
this.ipc.on('profile', this.listener.bind(this)); this.ipc.on('profile', this.listener.bind(this));
} }
/** /**
* * The "profile" channel callback. If a profile is changed, set it in the
* local settings object.
**/ **/
listener(event, arg) { listener(event, arg) {
this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false); this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false);

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
{ {
"version": "1.4.2", "version": "1.4.6",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {
@ -88,7 +88,7 @@
"camera_second_forward": "C2F", "camera_second_forward": "C2F",
"camera_second_backward": "C2B", "camera_second_backward": "C2B",
"cameras_forward": "CCF", "cameras_forward": "CCF",
"cameras_backward" : "CCB", "cameras_backward": "CCB",
"camera_forward_camera_second_backward": "CFCB", "camera_forward_camera_second_backward": "CFCB",
"camera_backward_camera_second_forward": "CBCF", "camera_backward_camera_second_forward": "CBCF",
"projector_second_forward": "P2F", "projector_second_forward": "P2F",
@ -148,9 +148,9 @@
"camera_second_backward": "2", "camera_second_backward": "2",
"camera_second": "3", "camera_second": "3",
"cameras": "4", "cameras": "4",
"camera_projectors_identifier" : "5", "camera_projectors_identifier": "5",
"cameras_projector_identifier" : "6", "cameras_projector_identifier": "6",
"cameras_projectors_identifier" : "7" "cameras_projectors_identifier": "7"
} }
} }
} }

View File

@ -33,7 +33,8 @@ class Devices {
this.init(); this.init();
} }
/** /**
* * Initialize the log for "devices". Establish an ipc connection to the UI.
* Start listening on that ipc connection.
**/ **/
private async init () { private async init () {
this.log = await Log({ label : 'devices' }) this.log = await Log({ label : 'devices' })
@ -41,13 +42,14 @@ class Devices {
this.listen() this.listen()
} }
/** /**
* * Listen to the "profile" channel for messages from the UI.
**/ **/
private listen () { private listen () {
this.ipc.on('profile', this.listener.bind(this)); this.ipc.on('profile', this.listener.bind(this));
} }
/** /**
* * The "profile" channel callback. If a profile is changed, set it in the
* local settings object.
**/ **/
private listener (event : any, arg : any){ private listener (event : any, arg : any){
this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false); this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false);