fixed bug in gpio_cmd preventing ON from being written