From 17580f44cc4620e7059a24e798547d023d1c8bf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 22 Jan 2020 10:56:52 +0100 Subject: [PATCH] safety_button: fix missing return when module exits --- src/drivers/safety_button/SafetyButton.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/safety_button/SafetyButton.cpp b/src/drivers/safety_button/SafetyButton.cpp index e59c589f6a61..37b2f711aead 100644 --- a/src/drivers/safety_button/SafetyButton.cpp +++ b/src/drivers/safety_button/SafetyButton.cpp @@ -204,6 +204,7 @@ SafetyButton::Run() { if (should_exit()) { exit_and_cleanup(); + return; } CheckButton();