Skip to content
Snippets Groups Projects
Commit 7d1dfb37 authored by Nicolae Rosia's avatar Nicolae Rosia Committed by Lorenz Meier
Browse files

linux_gpio: pin should be unsigned int

parent 99d4f70e
No related branches found
No related tags found
No related merge requests found
......@@ -184,7 +184,7 @@ cleanup:
return ret;
}
int LinuxGPIO::_readValue(int pin)
int LinuxGPIO::_readValue(unsigned int pin)
{
char path[PIN_VALUE_BUFFER_MAX];
char buf[2];
......@@ -218,7 +218,7 @@ cleanup:
return ret;
}
int LinuxGPIO::_writeValue(int pin, unsigned int value)
int LinuxGPIO::_writeValue(unsigned int pin, unsigned int value)
{
char path[PIN_VALUE_BUFFER_MAX];
char buf[2];
......
......@@ -68,8 +68,8 @@ private:
static int _exportPin(unsigned int pin);
static int _unexportPin(unsigned int pin);
static int _setDirection(unsigned int pin, int dir);
static int _readValue(int pin);
static int _writeValue(int pin, unsigned int value);
static int _readValue(unsigned int pin);
static int _writeValue(unsigned int pin, unsigned int value);
int _pin;
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment