Fix: Make sure the dev (in programming mode) is still there before flashing it
Fix: Make sure the dev (in programming mode) is still there before flashing it

Since we don't get events on when a device in programming mode is
connected/disconnected from the PC, we need to check for its presence.

Signed-off-by: Dan Nechita <2f664a27dbc3ee2034ed9e950b3808890cb5416a@analog.com>

analogdevicesinc/Pixelpulse2,analogdevicesinc/Pixelpulse2,analogdevicesinc/Pixelpulse2