You haven't mentioned how the two devices signals are connected, or if they are. You can't just switch power alone, because of parasitic powering through the I/O pins.
You haven't mentioned how the two devices signals are connected, or if they are. You can't just switch power alone, because of parasitic powering through the I/O pins.