Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryDaniel53 authored Aug 22, 2024
1 parent d06d3ec commit 3b0c634
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CamParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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'){
Expand Down
4 changes: 2 additions & 2 deletions IO_EXSensorCAM.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 '@'=>'`'
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3b0c634

Please sign in to comment.