Skip to content

Commit

Permalink
Fixed AD2USB Commands Send (openhab#4409)
Browse files Browse the repository at this point in the history
Added m_writer initialization when used on Serial Port

Added m_writer initialization when used on Serial Port

Added m_writer initialization when used on Serial Port

This has been tested with an AD2USB device and now works like a charm, thanks to Bernd for his work on this plugin and to the rest of the OpenHAB community.
  • Loading branch information
SilverGhostBS authored and teichsta committed May 31, 2016
1 parent 64733d4 commit a8b96c8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ private synchronized void connect() {
m_port.disableReceiveFraming();
m_port.disableReceiveThreshold();
m_reader = new BufferedReader(new InputStreamReader(m_port.getInputStream()));
m_writer = new BufferedWriter(new OutputStreamWriter(m_port.getOutputStream()));
logger.info("connected to serial port: {}", m_serialDeviceName);
startMsgReader();
} else {
Expand Down

0 comments on commit a8b96c8

Please sign in to comment.