mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
b gpio
fix return with no param
This commit is contained in:
@@ -100,7 +100,7 @@ bool GPIO::value()
|
|||||||
{
|
{
|
||||||
#if __aarch64__
|
#if __aarch64__
|
||||||
if (!m_request)
|
if (!m_request)
|
||||||
return;
|
return false;
|
||||||
return (bool)gpiod_line_request_get_value(m_request, m_offset);
|
return (bool)gpiod_line_request_get_value(m_request, m_offset);
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user