Added command 'K' to XDRGTK protocol to adjust scanhold
This commit is contained in:
@@ -515,6 +515,17 @@ void XDRGTKRoutine() {
|
|||||||
DataPrint("J" + String(scandxtemp) + "\n");
|
DataPrint("J" + String(scandxtemp) + "\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'K':
|
||||||
|
byte scanholdtemp;
|
||||||
|
scanholdtemp = atol(buff + 1);
|
||||||
|
if (scanholdtemp < 31) {
|
||||||
|
scanhold = scanholdtemp;
|
||||||
|
EEPROM.writeByte(EE_BYTE_SCANHOLD, scanhold);
|
||||||
|
EEPROM.commit();
|
||||||
|
}
|
||||||
|
DataPrint("K" + String(scanhold) + "\n");
|
||||||
|
break;
|
||||||
|
|
||||||
case 'M':
|
case 'M':
|
||||||
byte XDRband;
|
byte XDRband;
|
||||||
XDRband = atol(buff + 1);
|
XDRband = atol(buff + 1);
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ extern byte iMSEQ;
|
|||||||
extern byte iMSset;
|
extern byte iMSset;
|
||||||
extern byte language;
|
extern byte language;
|
||||||
extern byte memorypos;
|
extern byte memorypos;
|
||||||
|
extern byte scanhold;
|
||||||
extern byte stepsize;
|
extern byte stepsize;
|
||||||
extern byte subnetclient;
|
extern byte subnetclient;
|
||||||
extern byte TEF;
|
extern byte TEF;
|
||||||
|
|||||||
Reference in New Issue
Block a user