1
mirror of https://github.com/rvdbreemen/OTGW-firmware synced 2024-11-16 04:33:49 +01:00

fixing sendOTGW and updating AceTime & AceSorting

Thanks to RobR the upgrade to SDK 3.0.2 is possible, because of the fix of sendOTGW
This commit is contained in:
Robert van den Breemen 2021-12-05 23:01:49 +01:00
parent 22cc14f9b8
commit 64468fe182
2 changed files with 20 additions and 23 deletions

View File

@ -1182,6 +1182,11 @@ void checkOTGWcmdqueue(const char *buf, int len){
*/
void sendOTGW(const char* buf, int len)
{
// while (OTGWSerial.availableForWrite() < (len+2)) {
// //cannot write, buffer full, wait for some space in serial out buffer
// feedWatchDog(); //this yields for other processes
// }
//Send the buffer to OTGW when the Serial interface is available
if (OTGWSerial.availableForWrite()>=len+2) {
//check the write buffer
@ -1192,20 +1197,12 @@ void sendOTGW(const char* buf, int len)
}
OTGWDebug("] ("); OTGWDebug(len); OTGWDebug(")"); OTGWDebugln();
// while (OTGWSerial.availableForWrite()==(len+2)) {
// //cannot write, buffer full, wait for some space in serial out buffer
// feedWatchDog(); //this yields for other processes
// }
// if (OTGWSerial.availableForWrite()>= (len+2)) {
//write buffer to serial
OTGWSerial.write(buf, len);
// OTGWSerial.write("PS=0\r\n");
OTGWSerial.write('\r');
OTGWSerial.write('\n');
OTGWSerial.flush();
} else OTGWDebugln("Error: Write buffer not big enough!");
// } else OTGWDebugln("Error: Serial device not found!");
//write buffer to serial
OTGWSerial.write(buf, len);
OTGWSerial.write('\r');
OTGWSerial.write('\n');
OTGWSerial.flush();
} else OTGWDebugln("Error: Write buffer not big enough!");
}
/*

View File

@ -2,15 +2,15 @@
#define _VERSION_MAJOR 0
#define _VERSION_MINOR 9
#define _VERSION_PATCH 1
#define _VERSION_BUILD 1285
#define _VERSION_GITHASH "50c9bbe"
#define _VERSION_BUILD 1293
#define _VERSION_GITHASH "d5c55c4"
#define _VERSION_PRERELEASE beta
#define _VERSION_DATE "04-12-2021"
#define _VERSION_TIME "12:14:15"
#define _VERSION_DATE "05-12-2021"
#define _VERSION_TIME "23:24:31"
#define _SEMVER_CORE "0.9.1"
#define _SEMVER_BUILD "0.9.1+1285"
#define _SEMVER_GITHASH "0.9.1+50c9bbe"
#define _SEMVER_FULL "0.9.1-beta+50c9bbe"
#define _SEMVER_NOBUILD "0.9.1-beta (04-12-2021)"
#define _VERSION "0.9.1-beta+50c9bbe (04-12-2021)"
#define _SEMVER_BUILD "0.9.1+1293"
#define _SEMVER_GITHASH "0.9.1+d5c55c4"
#define _SEMVER_FULL "0.9.1-beta+d5c55c4"
#define _SEMVER_NOBUILD "0.9.1-beta (05-12-2021)"
#define _VERSION "0.9.1-beta+d5c55c4 (05-12-2021)"
//The version information is created automatically, more information here: https://github.com/rvdbreemen/autoinc-semver