1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +03:00

Cleanup of the bus switch functionality.

This commit is contained in:
Michael Keller 2021-09-07 10:28:02 +12:00
parent 1a97cbc9db
commit da0377faf4

View file

@ -198,7 +198,7 @@ void processLoopback(void)
#ifdef BUS_SWITCH_PIN
void busSwitchInit(void)
{
static IO_t busSwitchResetPin = IO_NONE;
IO_t busSwitchResetPin = IO_NONE;
busSwitchResetPin = IOGetByTag(IO_TAG(BUS_SWITCH_PIN));
IOInit(busSwitchResetPin, OWNER_SYSTEM, 0);