make bitrate mapping of B230400 depend on its defined'ness
This commit is contained in:
@@ -66,8 +66,10 @@ unsigned int bitrate_conversion[][2] = {
|
|||||||
{ 19200, B19200 },
|
{ 19200, B19200 },
|
||||||
{ 38400, B38400 },
|
{ 38400, B38400 },
|
||||||
{ 57600, B57600 },
|
{ 57600, B57600 },
|
||||||
{ 115200, B115200 },
|
{ 115200, B115200 }
|
||||||
{ 230400, B230400 }
|
#if defined(B230400)
|
||||||
|
, { 230400, B230400 }
|
||||||
|
#endif
|
||||||
#if defined(B460800)
|
#if defined(B460800)
|
||||||
, { 460800, B460800 }
|
, { 460800, B460800 }
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user