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

Inquiry and support for Freematics products
Post Reply
stasiana2
Posts: 2
Joined: Mon Feb 29, 2016 2:25 am

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

Post 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?
stanley
Site Admin
Posts: 1039
Joined: Sat Mar 01, 2014 3:15 am

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

Post by stanley »

The newer firmware (ver 1.1) requires an terminating byte of ESC.
Post Reply