AP_Networking: fix build for periph

This commit is contained in:
Tom Pittenger 2023-08-07 09:23:39 -07:00 committed by Tom Pittenger
parent 5c09a16a80
commit 1e83e61b25
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ bool AP_Networking_ChibiOS::init()
{
#ifdef HAL_GPIO_ETH_ENABLE
hal.gpio->pinMode(HAL_GPIO_ETH_ENABLE, HAL_GPIO_OUTPUT);
hal.gpio->write(HAL_GPIO_ETH_ENABLE, _param.enabled ? 1 : 0);
hal.gpio->write(HAL_GPIO_ETH_ENABLE, frontend.param.enabled ? 1 : 0);
#endif
if (!allocate_buffers()) {