[i2c] Make `get_port()` public (#9146)

This commit is contained in:
Jesse Hills 2025-06-19 17:44:33 +12:00 committed by GitHub
parent 30bea20f7a
commit 2c17b2bacc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,6 +109,7 @@ class I2CBus {
}; };
class InternalI2CBus : public I2CBus { class InternalI2CBus : public I2CBus {
public:
/// @brief Returns the I2C port number. /// @brief Returns the I2C port number.
/// @return the port number of the internal I2C bus /// @return the port number of the internal I2C bus
virtual int get_port() const = 0; virtual int get_port() const = 0;