mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
linux_gpio: use nullptr
Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com>
This commit is contained in:
committed by
Lorenz Meier
parent
4af7036a8a
commit
b82a0f988e
@@ -205,7 +205,7 @@ int LinuxGPIO::_readValue(int pin)
|
||||
|
||||
ret = 0;
|
||||
|
||||
ret = strtol(buf, NULL, 10);
|
||||
ret = strtol(buf, nullptr, 10);
|
||||
|
||||
cleanup:
|
||||
close(fd);
|
||||
|
||||
Reference in New Issue
Block a user