mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
unix/modtermios: Provide B57600 and B115200 constants only if defined.
This commit is contained in:
@@ -136,8 +136,12 @@ STATIC const mp_rom_map_elem_t mp_module_termios_globals_table[] = {
|
||||
C(TCSANOW),
|
||||
|
||||
C(B9600),
|
||||
#ifdef B57600
|
||||
C(B57600),
|
||||
#endif
|
||||
#ifdef B115200
|
||||
C(B115200),
|
||||
#endif
|
||||
#undef C
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user