Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Commit 083f5f3

Browse files
committed
add get_expander_port function to AdiPort class
1 parent ad4bda4 commit 083f5f3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

include/pros/devices/port.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,15 @@ class AdiPort {
220220
return m_index;
221221
}
222222

223+
/**
224+
* @brief Get the smart port of the ADI expander
225+
*
226+
* @return constexpr SmartPort
227+
*/
228+
constexpr SmartPort get_expander_port() const {
229+
return m_expander_port;
230+
}
231+
223232
/**
224233
* @brief Get the mutex for the given port
225234
*

0 commit comments

Comments
 (0)