Remove clear matrix on ADB recv error
This commit is contained in:
parent
cd2c78ba4e
commit
44bee03114
@ -40,6 +40,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
#include <avr/interrupt.h>
|
#include <avr/interrupt.h>
|
||||||
#include "adb.h"
|
#include "adb.h"
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
|
|
||||||
static inline void data_lo(void);
|
static inline void data_lo(void);
|
||||||
@ -93,6 +94,7 @@ uint16_t adb_host_kbd_recv(void)
|
|||||||
}
|
}
|
||||||
if (!read_bit()) { // Startbit(1)
|
if (!read_bit()) { // Startbit(1)
|
||||||
// Service Request
|
// Service Request
|
||||||
|
dprintf("Startbit ERROR\n");
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,6 +106,7 @@ uint16_t adb_host_kbd_recv(void)
|
|||||||
sei();
|
sei();
|
||||||
|
|
||||||
if (stop) {
|
if (stop) {
|
||||||
|
dprintf("Stopbit ERROR\n");
|
||||||
return -3;
|
return -3;
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
|
Reference in New Issue
Block a user