clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I3942bdbbb0fc2d46d755a74f481bb44fa63dc486
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/gpioMon.cpp b/gpioMon.cpp
index fcdf8f5..0b5bbd9 100644
--- a/gpioMon.cpp
+++ b/gpioMon.cpp
@@ -36,18 +36,17 @@
void GpioMonitor::scheduleEventHandler()
{
-
gpioEventDescriptor.async_wait(
boost::asio::posix::stream_descriptor::wait_read,
[this](const boost::system::error_code& ec) {
- if (ec)
- {
- std::string msg = gpioLineMsg + "event handler error" +
- std::string(ec.message());
- log<level::ERR>(msg.c_str());
- return;
- }
- gpioEventHandler();
+ if (ec)
+ {
+ std::string msg = gpioLineMsg + "event handler error" +
+ std::string(ec.message());
+ log<level::ERR>(msg.c_str());
+ return;
+ }
+ gpioEventHandler();
});
}
@@ -125,7 +124,6 @@
int GpioMonitor::requestGPIOEvents()
{
-
/* Request an event to monitor for respected gpio line */
if (gpiod_line_request(gpioLine, &gpioConfig, 0) < 0)
{