gitaeuber / mbrtu

modbus master tool for serial modbus communication (modbus RTU)
GNU General Public License v2.0
4 stars 4 forks source link

fix parsing of stopbit option #1

Closed Zugschlus closed 7 years ago

Zugschlus commented 7 years ago

this patch fixes broken handling of the stopbit option. Simply casting optarg[0] to uint makes mbrtu think that is should use 48 stop bits, resulting in "couldn't parse number stop bits: 1".