From 5d1abbfa6bdee3884456bac70706e7b34f371315 Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 11 Oct 2015 22:37:28 +0200 Subject: [PATCH] fix for overriding destination address in read command --- src/ebusd/mainloop.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ebusd/mainloop.h b/src/ebusd/mainloop.h index 483310d4..7e5b8500 100644 --- a/src/ebusd/mainloop.h +++ b/src/ebusd/mainloop.h @@ -111,9 +111,10 @@ private: * @param master the master data @a SymbolString for writing symbols to. * @param inputStr the input @a string from which to read master values (if any). * @param slave the @a SymbolString that will be filled with retrieved slave data. + * @param dstAddress the destination address to set, or @a SYN to keep the address defined during construction. * @return the result code. */ - result_t readFromBus(Message* message, SymbolString& master, string inputStr, SymbolString& slave); + result_t readFromBus(Message* message, SymbolString& master, string inputStr, SymbolString& slave, const unsigned char dstAddress=SYN); /** * Execute the read command.