1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-26 17:46:14 +01:00

Add files via upload

This commit is contained in:
Barry Daniel 2024-09-26 10:52:42 +10:00 committed by GitHub
parent df639f5c66
commit 623e105805
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,6 @@
#define SENSORCAM3_VPIN 0
#endif
const int CAMVPINS[] = {CAM_VPIN,SENSORCAM_VPIN,SENSORCAM2_VPIN,SENSORCAM3_VPIN};
const int16_t version=9914;
const int16_t ver=30177;
const int16_t ve =2899;
@ -49,7 +48,7 @@ bool CamParser::parseN(Print * stream, byte paramCount, int16_t p[]) {
}
if (EXSensorCAM::CAMBaseVpin==0) return false; // no cam defined
if((p[0] == ve) || (p[0] == ver) || (p[0] == version)) camop='^';
if((p[0] == ve) || (p[0] == ver) || (p[0] == 'V')) camop='^';
// send UPPER case to sensorCAM to flag binary data from a DCCEX-CS parser
switch(paramCount) {
case 1: //<N ver> produces '^'