fixed next gpio warning
This commit is contained in:
parent
e1fae133a3
commit
d3e6f897c1
@ -61,7 +61,7 @@ bool Gpio::exportGpio()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint len = snprintf(buf, sizeof(buf), "%d", m_gpio);
|
ssize_t len = snprintf(buf, sizeof(buf), "%d", m_gpio);
|
||||||
if(write(fd, buf, len) != len){
|
if(write(fd, buf, len) != len){
|
||||||
qDebug() << "ERROR: could not set edge interrupt";
|
qDebug() << "ERROR: could not set edge interrupt";
|
||||||
close(fd);
|
close(fd);
|
||||||
@ -82,7 +82,7 @@ bool Gpio::unexportGpio()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint len = snprintf(buf, sizeof(buf), "%d", m_gpio);
|
ssize_t len = snprintf(buf, sizeof(buf), "%d", m_gpio);
|
||||||
if(write(fd, buf, len) != len){
|
if(write(fd, buf, len) != len){
|
||||||
qDebug() << "ERROR: could not set edge interrupt";
|
qDebug() << "ERROR: could not set edge interrupt";
|
||||||
close(fd);
|
close(fd);
|
||||||
|
|||||||
Reference in New Issue
Block a user