gpiodaemon: small optimization