Skip to content

Commit 7a958bb

Browse files
committed
fix inconsistency and remove unused reg def.
1 parent 00d45c9 commit 7a958bb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/pi4ioe5v/include/pi4ioe5v.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class Pi4ioe5v : public BasePeripheral<> {
184184
* @return true if successful, false if an error occurred.
185185
*/
186186
bool set_direction(uint8_t mask, std::error_code &ec) {
187-
logger_.info("Setting direction (1=input) to {:#10b}", mask);
187+
logger_.info("Setting direction (1=output) to {:#10b}", mask);
188188
write_u8_to_register((uint8_t)Registers::DIRECTION, mask, ec);
189189
return !ec;
190190
}
@@ -360,8 +360,6 @@ class Pi4ioe5v : public BasePeripheral<> {
360360
INPUT = 0x0F, ///< Input values (read-only)
361361
INT_MASK = 0x11, ///< Interrupt mask (1=disabled, 0=enabled)
362362
INT_STATUS = 0x13, ///< Interrupt status (read-only)
363-
POLARITY_INV = 0x15, ///< Polarity inversion (1=inverted, 0=normal) - NOTE: This may not exist
364-
///< on all variants
365363
};
366364

367365
/**

0 commit comments

Comments
 (0)