Skip to content

Commit b2eefae

Browse files
committed
Fixed pre-commit issues.
1 parent 7d4f5bc commit b2eefae

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ repos:
4848
- id: clang-format
4949
name: clang-format
5050
description: Format files with ClangFormat.
51-
entry: clang-format
51+
entry: clang-format-14
5252
language: system
5353
files: \.(c|cc|cxx|cpp|frag|glsl|h|hpp|hxx|ih|ispc|ipp|java|m|proto|vert)$
5454
args: ["-fallback-style=none", "-i"]

src/stepit_hardware_tests/src/get_status.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,16 @@ int main(int argc, char* argv[])
4949
CommandLineUtility cli;
5050

5151
std::string port = kUsbPort;
52-
cli.registerHandler("--port", [&port](const char* value) { port = value; }, false);
52+
cli.registerHandler(
53+
"--port", [&port](const char* value) { port = value; }, false);
5354

5455
uint32_t baudrate = kBaudRate;
5556
cli.registerHandler(
5657
"--baudrate", [&baudrate](const char* value) { baudrate = static_cast<uint32_t>(std::stoul(value)); }, false);
5758

5859
double timeout = kTimeout;
59-
cli.registerHandler("--timeout", [&timeout](const char* value) { timeout = std::stoi(value); }, false);
60+
cli.registerHandler(
61+
"--timeout", [&timeout](const char* value) { timeout = std::stoi(value); }, false);
6062

6163
cli.registerHandler("-h", [&]() {
6264
std::cout << "Usage: ./set_relative_pressure [OPTIONS]\n"

0 commit comments

Comments
 (0)