itas109 / CommLite

CommLite 是一款基于CSerialPort的文本UI串口调试助手 CommLite is a textual user interface serial communication tool
Other
16 stars 5 forks source link

baudrate input not same to output 波特率设置输入输出不一致 #1

Closed itas109 closed 4 years ago

itas109 commented 4 years ago

Describe the bug baudrate input not same to output 波特率设置输入输出不一致

To Reproduce Steps to reproduce the behavior:

  1. Click “Open”
  2. Click “PortSetting”
  3. backspace baudrate default '9600', change it to '960'
  4. input '123' at '960', change baudrate to '960123' 5.then it output like "COM1,9601". it should "COM1,960123"

    m_BaudRate "9601\000\000" std::string [0] '9' 57 0x39 char [1] '6' 54 0x36 char [2] '0' 48 0x30 char [3] '1' 49 0x31 char [4] '\0' 0 0x00 char [5] '\0' 0 0x00 char

Expected behavior input same to output

Desktop (please complete the following information):