catch exceptions as const

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I9e474f2b3e936b9961eaa08693744c466736e768
diff --git a/include/ADCSensor.hpp b/include/ADCSensor.hpp
index 9e58139..9d2369b 100644
--- a/include/ADCSensor.hpp
+++ b/include/ADCSensor.hpp
@@ -34,7 +34,7 @@
                                   ? 0
                                   : gpiod::line_request::FLAG_ACTIVE_LOW});
             }
-            catch (std::system_error&)
+            catch (const std::system_error&)
             {
                 std::cerr << "Error requesting gpio: " << name << "\n";
             }
@@ -49,7 +49,7 @@
             {
                 line.set_value(value);
             }
-            catch (std::system_error& exc)
+            catch (const std::system_error& exc)
             {
                 std::cerr << "Error set_value: " << exc.what() << "\n";
             }