Skip to content

Commit

Permalink
ccrrect caps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Asbelos committed May 23, 2024
1 parent 0c62d27 commit 77e6e48
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CamParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ VPIN EXSensorCAM::CAMBaseVpin = 0;
bool CamParser::parseN(Print * stream, byte paramCount, int16_t p[])
{
(void)stream; // probably unused parameter

if (EXSensorCAM::CAMBaseVpin==0) return false; // no cam found
// DIAG(F("cam (%d) %c %d %d %d"),paramCount,p[0],p[1],p[2],p[3]);

//if (EXSensorCAM::CAMBaseVpin==0) return false; // no cam found
if (paramCount == 0) return false;
VPIN vpin=EXSensorCAM::CAMBaseVpin;
byte camop=p[0]; // cam oprerator (F is special)
if (camop!='F') camop=p[0]-0x20; // lower case the oprerator
if (camop!='F') camop=p[0]+0x20; // lower case the oprerator
int16_t param1;
int16_t param2;

Expand Down

0 comments on commit 77e6e48

Please sign in to comment.