From 3b0c634423f1859475cb8d7f914f84c478e3182c Mon Sep 17 00:00:00 2001 From: Barry Daniel Date: Thu, 22 Aug 2024 11:11:04 +1000 Subject: [PATCH] Add files via upload --- CamParser.cpp | 2 +- IO_EXSensorCAM.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CamParser.cpp b/CamParser.cpp index 8d4ab2f..c117b16 100644 --- a/CamParser.cpp +++ b/CamParser.cpp @@ -30,7 +30,7 @@ bool CamParser::parseN(Print * stream, byte paramCount, int16_t p[]) { return true; } uint8_t camop=p[0]; // cam oprerator - int16_t param1=0; + int param1=0; int16_t param3=9999; // =0 could invoke parameter changes. & -1 gives later errors if(camop=='C'){ diff --git a/IO_EXSensorCAM.h b/IO_EXSensorCAM.h index 40420c3..b7c6a66 100644 --- a/IO_EXSensorCAM.h +++ b/IO_EXSensorCAM.h @@ -226,7 +226,7 @@ int ioESP32(uint8_t i2cAddr,uint8_t *rBuf,int inbytes,uint8_t *outBuff,int outby int processIncomingPkt(uint8_t *rBuf,uint8_t sensorCmd) { int k; int b; - int x; + // if (sensorCmd <= '~') DIAG(F("processIncomingPkt %c %d %d %d"),rBuf[0],rBuf[1],rBuf[2],rBuf[3]); switch (sensorCmd){ case '`': //response to request for digitalInputStates[] table '@'=>'`' @@ -314,7 +314,7 @@ int processIncomingPkt(uint8_t *rBuf,uint8_t sensorCmd) { } //************************* // Write (analogue) 8bit (command) values. Write the parameters to the sensorCAM -void _writeAnalogue(VPIN vpin, int16_t param1, uint8_t camop, uint16_t param3) override { +void _writeAnalogue(VPIN vpin, int param1, uint8_t camop, uint16_t param3) override { uint8_t outputBuffer[7]; int errors=0; outputBuffer[0] = camop;