mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 01:56:14 +01:00
ccrrect caps.
This commit is contained in:
parent
0c62d27be2
commit
77e6e48d78
|
@ -8,12 +8,13 @@ VPIN EXSensorCAM::CAMBaseVpin = 0;
|
||||||
bool CamParser::parseN(Print * stream, byte paramCount, int16_t p[])
|
bool CamParser::parseN(Print * stream, byte paramCount, int16_t p[])
|
||||||
{
|
{
|
||||||
(void)stream; // probably unused parameter
|
(void)stream; // probably unused parameter
|
||||||
|
// 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 (EXSensorCAM::CAMBaseVpin==0) return false; // no cam found
|
||||||
if (paramCount == 0) return false;
|
if (paramCount == 0) return false;
|
||||||
VPIN vpin=EXSensorCAM::CAMBaseVpin;
|
VPIN vpin=EXSensorCAM::CAMBaseVpin;
|
||||||
byte camop=p[0]; // cam oprerator (F is special)
|
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 param1;
|
||||||
int16_t param2;
|
int16_t param2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user