mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 08:06:13 +01:00
Add files via upload
This commit is contained in:
parent
d06d3ec77e
commit
3b0c634423
|
@ -30,7 +30,7 @@ bool CamParser::parseN(Print * stream, byte paramCount, int16_t p[]) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
uint8_t camop=p[0]; // cam oprerator
|
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
|
int16_t param3=9999; // =0 could invoke parameter changes. & -1 gives later errors
|
||||||
|
|
||||||
if(camop=='C'){
|
if(camop=='C'){
|
||||||
|
|
|
@ -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 processIncomingPkt(uint8_t *rBuf,uint8_t sensorCmd) {
|
||||||
int k;
|
int k;
|
||||||
int b;
|
int b;
|
||||||
int x;
|
|
||||||
// if (sensorCmd <= '~') DIAG(F("processIncomingPkt %c %d %d %d"),rBuf[0],rBuf[1],rBuf[2],rBuf[3]);
|
// if (sensorCmd <= '~') DIAG(F("processIncomingPkt %c %d %d %d"),rBuf[0],rBuf[1],rBuf[2],rBuf[3]);
|
||||||
switch (sensorCmd){
|
switch (sensorCmd){
|
||||||
case '`': //response to request for digitalInputStates[] table '@'=>'`'
|
case '`': //response to request for digitalInputStates[] table '@'=>'`'
|
||||||
|
@ -314,7 +314,7 @@ int processIncomingPkt(uint8_t *rBuf,uint8_t sensorCmd) {
|
||||||
}
|
}
|
||||||
//*************************
|
//*************************
|
||||||
// Write (analogue) 8bit (command) values. Write the parameters to the sensorCAM
|
// 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];
|
uint8_t outputBuffer[7];
|
||||||
int errors=0;
|
int errors=0;
|
||||||
outputBuffer[0] = camop;
|
outputBuffer[0] = camop;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user