usb_canbus: No need to check if canserial can accept a packet

The canserial code already advertizes a receive window, so the host
should never flood the canserial code.  Remove the extra scheduling
checks to simplify the usb_canbus code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2023-04-15 12:21:46 -04:00
parent 3377f29bc5
commit 28f11244c3
3 changed files with 8 additions and 13 deletions

View File

@@ -9,7 +9,7 @@
// canserial.c
void canserial_notify_tx(void);
struct canbus_msg;
int canserial_process_data(struct canbus_msg *msg);
void canserial_process_data(struct canbus_msg *msg);
void canserial_set_uuid(uint8_t *raw_uuid, uint32_t raw_uuid_len);
#endif // canserial.h