diff --git a/CHANGELOG.md b/CHANGELOG.md index 336be349740a015a9bd2f7365d695b41e92a19c4..528a2820cabb53e05a73580a43886588137cd87b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Fixed a bug where bytes were not written to the serial stream correctly. * Now correctly handles writing both byte arrays and strings to the serial port. +* Fixed connect method so it properly sends the initialize codes. ## 1.0.1 diff --git a/lib/kiss/kiss_serial.rb b/lib/kiss/kiss_serial.rb index 6a92645edb3f28b6cbe270f733823308f7375b6c..affb3207deff193b7995a6868c69d6c40959d240 100644 --- a/lib/kiss/kiss_serial.rb +++ b/lib/kiss/kiss_serial.rb @@ -53,7 +53,7 @@ module Kiss @serial.read_timeout = SERIAL_READ_TIMEOUT if mode_init - @serial.write(mode_init) + write_interface(mode_init) @exit_kiss = true else @exit_kiss = false