Page 1 of 1

What is this "// send terminating byte (ESC)" in the code?

Posted: Sat Mar 26, 2016 2:30 am
by stasiana2
In FreematicsONE.cpp, there is:

Code: Select all

        // send terminating byte (ESC)
        if (version != 10) {
                SPI.transfer(0x1B);
                digitalWrite(SPI_PIN_CS, HIGH);
        } else {
                digitalWrite(SPI_PIN_CS, HIGH);
        }

What is this terminating byte business and why is it needed only if the OBDUART version is 10?

Re: What is this "// send terminating byte (ESC)" in the cod

Posted: Sat Apr 02, 2016 10:03 am
by stanley
The newer firmware (ver 1.1) requires an terminating byte of ESC.