fixed logic error
This commit is contained in:
@@ -27,7 +27,7 @@ void GPIOInterface::write_pin(char address, char data)
|
||||
|
||||
bool GPIOInterface::read_pin(char address)
|
||||
{
|
||||
return PULLDOWN && digitalRead(address);
|
||||
return PULLDOWN == digitalRead(address);
|
||||
}
|
||||
|
||||
void GPIOInterface::initialize_output_pin(char address)
|
||||
|
||||
Reference in New Issue
Block a user