canon_ble #82

Merged
mattmcw merged 149 commits from canon_ble into main 2023-08-01 03:38:52 +00:00
5 changed files with 4 additions and 4 deletions
Showing only changes of commit 0b71da8e7b - Show all commits

View File

@ -16,7 +16,7 @@
#include "CanonBLERemote.h"
#include <Arduino.h>
#include "McopySerial.h"
//#include "McopySerial.h"
#define LOG_LOCAL_LEVEL ESP_LOG_INFO
#include "esp_log.h"

View File

@ -18,7 +18,7 @@ fi
SKETCHES=(
mcopy_arri_s_firmware
mcopy_cam_canon_ble
mcopy_cam_canon_ble_nano
mcopy_cam_relay
mcopy_JKMM100
components/mcopy_light

View File

@ -101,7 +101,7 @@ class Arduino {
**/
async sendAsync (device : string, cmd : string) {
return new Promise ((resolve, reject) => {
console.log(`${device} -> ${cmd}`)
//this.log.info(`${device} -> ${cmd}`)
this.queue[cmd] = (ms : number) => {
return resolve(ms)
}
@ -172,7 +172,7 @@ class Arduino {
}
}.bind(this), 1000)
}
console.log(`${device} -> ${cmd}`)
//this.log.info(`${device} -> ${cmd}`)
return this.serial[device].write(cmd, (err : any, results : any) => {
if (err) {
//this.log.error(err)