diff --git a/data/cfg.json b/data/cfg.json index 404f8da..655a50f 100644 --- a/data/cfg.json +++ b/data/cfg.json @@ -178,7 +178,10 @@ "cameras": "4", "camera_projectors_identifier": "5", "cameras_projector_identifier": "6", - "cameras_projectors_identifier": "7" + "cameras_projectors_identifier": "7", + "camera_capper_identifier" : "8", + "camera_capper_projector_identifier" : "9", + "camera_capper_projectors_identifier" : "0" } } } diff --git a/src/arduino/index.ts b/src/arduino/index.ts index 2f44800..12e3900 100644 --- a/src/arduino/index.ts +++ b/src/arduino/index.ts @@ -252,7 +252,10 @@ class Arduino { || data === cfg.arduino.cmd.camera_second_forward || data === cfg.arduino.cmd.camera_second_backward || data === cfg.arduino.cmd.camera_second - || data === cfg.arduino.cmd.cameras) { + || data === cfg.arduino.cmd.cameras + || data === cfg.arduino.cmd.camera_capper_identifier + || data === cfg.arduino.cmd.camera_capper_projector_identifier + || data === cfg.arduino.cmd.camera_capper_projectors_identifier) { this.confirmExec(null, data); this.confirmExec = {}; @@ -314,6 +317,12 @@ class Arduino { type = 'camera,camera_second,projector' } else if (data === cfg.arduino.cmd.cameras_projectors_identifier) { type = 'camera,camera_second,projector,projector_second' + } else if (data === cfg.arduino.cmd.camera_capper_identifier) { + type = 'camera,capper' + } else if (data === cfg.arduino.cmd.camera_capper_projector_identifier) { + type = 'camera,capper,projector' + } else if (data === cfg.arduino.cmd.camera_capper_projectors_identifier) { + type = 'camera,capper,projector,projector_second' } return resolve(type) } diff --git a/src/devices/index.ts b/src/devices/index.ts index 1246403..7b6e041 100644 --- a/src/devices/index.ts +++ b/src/devices/index.ts @@ -419,7 +419,7 @@ class Devices { }) if (match.length === 0) { deviceEntry = { - type : type + type } deviceEntry[which] = device this.settings.state.devices.push(deviceEntry)