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:
Mihai Tudor Panu
2018-09-04 06:31:26 -07:00
parent 89e2ec870a
commit 07a9af07fe
11 changed files with 10 additions and 29 deletions

View File

@ -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)
{

View File

@ -45,7 +45,6 @@
*/
typedef struct _collision_context {
mraa_gpio_context gpio;
uint8_t gpio_pin;
} *collision_context;
/**