Add files via upload
This commit is contained in:
parent
6fdee4508e
commit
aaaeb7f7ed
1 changed files with 3 additions and 1 deletions
|
@ -644,7 +644,9 @@ void loop() {
|
|||
over_flow = 0; // assume no overflow until status is received
|
||||
trackpoint_error = LOW; // start with no error
|
||||
tp_write(0xeb); // request data
|
||||
tp_read(); // ignore ack
|
||||
if (tp_read() != 0xfa) { // verify correct ack byte
|
||||
trackpoint_error = HIGH;
|
||||
}
|
||||
mstat = tp_read(); // save into status variable
|
||||
mx = tp_read(); // save into x variable
|
||||
my = tp_read(); // save into y variable
|
||||
|
|
Loading…
Reference in a new issue