diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2023-04-15 12:21:46 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2023-04-24 11:31:06 -0400 |
commit | 28f11244c3a91c18f0f4f3c3a02b5f20b0ff5547 (patch) | |
tree | 38820808b6873e85c664b4c4aed047c23449a060 /src/generic/canserial.h | |
parent | 3377f29bc54938ab2820ff6b5212ce525e12b511 (diff) | |
download | kutter-28f11244c3a91c18f0f4f3c3a02b5f20b0ff5547.tar.gz kutter-28f11244c3a91c18f0f4f3c3a02b5f20b0ff5547.tar.xz kutter-28f11244c3a91c18f0f4f3c3a02b5f20b0ff5547.zip |
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>
Diffstat (limited to 'src/generic/canserial.h')
-rw-r--r-- | src/generic/canserial.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generic/canserial.h b/src/generic/canserial.h index e8f3767f..3dd5cd9d 100644 --- a/src/generic/canserial.h +++ b/src/generic/canserial.h @@ -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 |