Fix compiler error in gpio_set_value