From 704fdc57af344de57ef5f661a2268a6c573fb95e Mon Sep 17 00:00:00 2001 From: Kevin Patino Date: Fri, 25 May 2018 11:36:52 -0500 Subject: [PATCH] Fix Zwave Libraries --- cpp/driver/zwave_gpio.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/driver/zwave_gpio.cpp b/cpp/driver/zwave_gpio.cpp index 9bfa05a..fb884d8 100644 --- a/cpp/driver/zwave_gpio.cpp +++ b/cpp/driver/zwave_gpio.cpp @@ -47,13 +47,13 @@ bool ZwaveGPIO::SetControl(uint16_t pin, uint16_t value) { control_ = value << pin | (control_ & ~mask); - return bus_->Write(kZwaveGPIOBaseAddress, control_); + return bus_->Write(kZwaveGPIOBaseAddress + 1, control_); } uint16_t ZwaveGPIO::GetMISO() { - uint32_t mask = 0x1 << Data::MISO; + uint32_t mask = 0x1 << ZwaveData::MISO; bus_->Read(kZwaveGPIOBaseAddress, &data_); - return (data_ & mask) >> Data::MISO; + return (data_ & mask) >> ZwaveData::MISO; } }; // namespace matrix_hal