Skip to content
Merged
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ AlignTrailingComments:
OverEmptyLines: 1
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Always
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: InlineOnly
Expand Down
2 changes: 1 addition & 1 deletion include/estop/EStopManager.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once

Check warning on line 1 in include/estop/EStopManager.h

View workflow job for this annotation

GitHub Actions / C/C++ Linter

include/estop/EStopManager.h:1:1 [portability-avoid-pragma-once]

avoid 'pragma once' directive; use include guards instead

#include "estop/EStopState.h"

Expand All @@ -7,11 +7,11 @@
#include <cstdint>

namespace OpenShock::EStopManager {
[[nodiscard]] bool Init();

Check warning on line 10 in include/estop/EStopManager.h

View workflow job for this annotation

GitHub Actions / C/C++ Linter

include/estop/EStopManager.h:10:22 [modernize-use-trailing-return-type]

use a trailing return type for this function
bool SetEStopEnabled(bool enabled);

Check warning on line 11 in include/estop/EStopManager.h

View workflow job for this annotation

GitHub Actions / C/C++ Linter

include/estop/EStopManager.h:11:8 [modernize-use-trailing-return-type]

use a trailing return type for this function
bool SetEStopPin(gpio_num_t pin);

Check warning on line 12 in include/estop/EStopManager.h

View workflow job for this annotation

GitHub Actions / C/C++ Linter

include/estop/EStopManager.h:12:8 [modernize-use-trailing-return-type]

use a trailing return type for this function
bool IsEStopped();

Check warning on line 13 in include/estop/EStopManager.h

View workflow job for this annotation

GitHub Actions / C/C++ Linter

include/estop/EStopManager.h:13:8 [modernize-use-trailing-return-type]

use a trailing return type for this function
int64_t LastEStopped();

Check warning on line 14 in include/estop/EStopManager.h

View workflow job for this annotation

GitHub Actions / C/C++ Linter

include/estop/EStopManager.h:14:11 [modernize-use-trailing-return-type]

use a trailing return type for this function

void Trigger();
void SoftwareTrigger();
} // namespace OpenShock::EStopManager
Loading