Merge in 9 months of work on capper branch #71

Merged
mattmcw merged 95 commits from capper into main 2023-02-19 05:28:46 +00:00
3 changed files with 19 additions and 1 deletions
Showing only changes of commit 3f759f5678 - Show all commits

View File

@ -362,6 +362,16 @@ class Devices {
return false; return false;
} }
} }
else if (type === 'capper') {
this.connected.capper = device;
try {
connectSuccess = await this.arduino.connect('capper', device, false);
}
catch (err) {
this.log.error('Error connecting capper', err);
return false;
}
}
else if (type === 'camera,capper') { else if (type === 'camera,capper') {
this.connected.camera = device; this.connected.camera = device;
this.connected.capper = device; this.connected.capper = device;

File diff suppressed because one or more lines are too long

View File

@ -351,6 +351,14 @@ class Devices {
this.log.error('Error connecting to camera, camera_second, projector and projector_second', err) this.log.error('Error connecting to camera, camera_second, projector and projector_second', err)
return false return false
} }
} else if (type === 'capper') {
this.connected.capper = device
try {
connectSuccess = await this.arduino.connect('capper', device, false)
} catch (err) {
this.log.error('Error connecting capper', err)
return false
}
} else if (type === 'camera,capper') { } else if (type === 'camera,capper') {
this.connected.camera = device this.connected.camera = device
this.connected.capper = device this.connected.capper = device