remove address bug
This commit is contained in:
@@ -55,7 +55,7 @@ void DriverBoardPinController::deactivate(items::DriverBoardItem &driver_board_i
|
|||||||
|
|
||||||
void DriverBoardPinController::select_adress(uint8_t address)
|
void DriverBoardPinController::select_adress(uint8_t address)
|
||||||
{
|
{
|
||||||
address = address / 8;
|
address = address % 8;
|
||||||
write_pin(this->address_pins[0], address & 0b001);
|
write_pin(this->address_pins[0], address & 0b001);
|
||||||
write_pin(this->address_pins[1], address & 0b010);
|
write_pin(this->address_pins[1], address & 0b010);
|
||||||
write_pin(this->address_pins[2], address & 0b100);
|
write_pin(this->address_pins[2], address & 0b100);
|
||||||
|
|||||||
Reference in New Issue
Block a user