Skip to content

Commit

Permalink
Fix Zwave Libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
kdpatino committed May 25, 2018
1 parent 738719c commit 704fdc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/driver/zwave_gpio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 704fdc5

Please sign in to comment.