1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-22 23:56:13 +01:00

ccrrect caps.

This commit is contained in:
Asbelos 2024-05-23 08:50:37 +01:00
parent 0c62d27be2
commit 77e6e48d78

View File

@ -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;