diff options
author | Damien George <damien.p.george@gmail.com> | 2020-02-07 12:55:12 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-02-07 16:08:37 +1100 |
commit | ce40abcf21926b35da6c7255215c5062ac2be521 (patch) | |
tree | 245caa3405226a73f16fe8bcd439a312116516bd /tests/basics/set_basic.py | |
parent | 046ae80bdfc3bf4f278f3cc0fb29dc82ad91ec33 (diff) |
stm32/usbd_cdc_interface: Remove "interrupt_char != -1" check.
It's not needed. The C integer implicit promotion rules mean that the
uint8_t of the incoming character is promoted to a (signed) int, matching
the type of interrupt_char. Thus the uint8_t incoming character can never
be equal to -1 (the value of interrupt_char that indicate that interruption
is disabled).
Diffstat (limited to 'tests/basics/set_basic.py')
0 files changed, 0 insertions, 0 deletions