mirror of
https://github.com/eclipse/upm.git
synced 2025-07-08 04:41:12 +03:00
upm-c: remove uint8_t limit from pin/bus variables in structs
This removes unnecessary uint8 types from C driver structs that prevented some sensors from being initialized when connected to a MRAA subplatform. Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
@ -39,8 +39,7 @@ collision_context collision_init(int pin) {
|
||||
if (!dev)
|
||||
return NULL;
|
||||
|
||||
dev->gpio_pin = pin;
|
||||
dev->gpio = mraa_gpio_init(dev->gpio_pin);
|
||||
dev->gpio = mraa_gpio_init(pin);
|
||||
|
||||
if(mraa_gpio_dir(dev->gpio, MRAA_GPIO_IN) != MRAA_SUCCESS)
|
||||
{
|
||||
|
Reference in New Issue
Block a user