fix wrong port multiplexer name in dump GPIO function (#4592)

This commit is contained in:
Dominik Skalník 2023-03-23 19:37:40 +01:00 committed by GitHub
parent e13eaf6706
commit c16709ed95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ bool SX1509GPIOPin::digital_read() { return this->parent_->digital_read(this->pi
void SX1509GPIOPin::digital_write(bool value) { this->parent_->digital_write(this->pin_, value != this->inverted_); }
std::string SX1509GPIOPin::dump_summary() const {
char buffer[32];
snprintf(buffer, sizeof(buffer), "%u via MCP23016", pin_);
snprintf(buffer, sizeof(buffer), "%u via sx1509", pin_);
return buffer;
}