check for gpio_id less than 0