diff options
| author | hathach <[email protected]> | 2025-10-16 10:44:22 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-10-16 10:44:22 +0700 |
| commit | 2f3b21a1e58e5c03c61e83920d77f8c27540dfd5 (patch) | |
| tree | 396d211424948c0a6ba4c6301f593ab9635fd4f9 /examples/device/board_test/src | |
| parent | e93e47ae0434b53a20d1c62de62f34377bc8b492 (diff) | |
fix some warnings detected by pvs-studio
Diffstat (limited to 'examples/device/board_test/src')
| -rw-r--r-- | examples/device/board_test/src/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/device/board_test/src/main.c b/examples/device/board_test/src/main.c index d91a8760e..872a97108 100644 --- a/examples/device/board_test/src/main.c +++ b/examples/device/board_test/src/main.c @@ -45,6 +45,7 @@ int main(void) { uint32_t start_ms = 0; bool led_state = false; + const size_t hello_len = strlen(HELLO_STR); while (1) { uint32_t interval_ms = board_button_read() ? BLINK_PRESSED : BLINK_UNPRESSED; @@ -66,7 +67,7 @@ int main(void) { printf(HELLO_STR); #ifndef LOGGER_UART - board_uart_write(HELLO_STR, strlen(HELLO_STR)); + board_uart_write(HELLO_STR, hello_len); #endif } |
