improve cardhopper to improve reliability when parts of the packet are buffered
This commit is contained in:
1 parent
5057f1a684
commit
df5e2ce05b
3 files changed
+27
-6
No files matched your search
@@ -718,6 +718,10 @@ static uint8_t usb_read_ng_buffer[64] = {0};
|
||||
static uint8_t usb_read_ng_bufoffset = 0;
|
||||
static uint8_t usb_read_ng_buflen = 0;
|
||||
|
||||
bool usb_read_ng_has_buffered_data(void) {
|
||||
return usb_read_ng_buflen > 0;
|
||||
}
|
||||
|
||||
uint32_t usb_read_ng(uint8_t *data, size_t len) {
|
||||
|
||||
if (len == 0) {
|
||||
|
||||
Reference in new issue
Block a user