Skip to content

Commit

Permalink
AP_HAL_ESP32: UARTDriver: add get_index method to SerialDef
Browse files Browse the repository at this point in the history
Signed-off-by: Rhys Mainwaring <[email protected]>
  • Loading branch information
srmainwaring committed Nov 24, 2024
1 parent 930c946 commit 671dff2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/AP_HAL_ESP32/UARTDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ class ESP32::UARTDriver : public AP_HAL::UARTDriver
uart_port_t port;
gpio_num_t rx;
gpio_num_t tx;
// available in chibios but not currently required for esp32
// uint8_t get_index(void) const {
// return uint8_t(this - &_serial_tab[0]);
// }
};

//! @todo enable wait_timeout override
Expand Down

0 comments on commit 671dff2

Please sign in to comment.