fixed gpio request listening logic