fix gpio check - not checking all gpio if not set