writeWord: return value of write as it may have been changed by write
This commit is contained in:
parent
ebdd95ea0a
commit
eeed41c62e
1 changed files with 1 additions and 3 deletions
4
bus.cpp
4
bus.cpp
|
@ -582,7 +582,5 @@ uint16_t bus::readWord(const uint16_t a)
|
|||
|
||||
uint16_t bus::writeWord(const uint16_t a, const uint16_t value)
|
||||
{
|
||||
write(a, false, value);
|
||||
|
||||
return value;
|
||||
return write(a, false, value);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue