mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
Lint
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
GPIO::GPIO(QObject *parent) : QObject(parent), m_offset(0)
|
GPIO::GPIO(QObject *parent) : QObject(parent), m_offset(0)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
GPIO::~GPIO()
|
GPIO::~GPIO()
|
||||||
@@ -27,10 +26,7 @@ void GPIO::configure_pin(Direction dir, uint8_t gpio)
|
|||||||
::gpiod::chip(chip_path)
|
::gpiod::chip(chip_path)
|
||||||
.prepare_request()
|
.prepare_request()
|
||||||
.set_consumer("unisim_cpp")
|
.set_consumer("unisim_cpp")
|
||||||
.add_line_settings(
|
.add_line_settings(m_offset, ::gpiod::line_settings().set_direction(::gpiod::line::direction::OUTPUT))
|
||||||
m_offset,
|
|
||||||
::gpiod::line_settings().set_direction(
|
|
||||||
::gpiod::line::direction::OUTPUT))
|
|
||||||
.do_request());
|
.do_request());
|
||||||
}
|
}
|
||||||
if (dir == Direction::Input)
|
if (dir == Direction::Input)
|
||||||
@@ -39,10 +35,7 @@ void GPIO::configure_pin(Direction dir, uint8_t gpio)
|
|||||||
::gpiod::chip(chip_path)
|
::gpiod::chip(chip_path)
|
||||||
.prepare_request()
|
.prepare_request()
|
||||||
.set_consumer("get-line-value")
|
.set_consumer("get-line-value")
|
||||||
.add_line_settings(
|
.add_line_settings(m_offset, ::gpiod::line_settings().set_direction(::gpiod::line::direction::INPUT))
|
||||||
m_offset,
|
|
||||||
::gpiod::line_settings().set_direction(
|
|
||||||
::gpiod::line::direction::INPUT))
|
|
||||||
.do_request());
|
.do_request());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user