Skip to content

Commit a8f9cd8

Browse files
authored
Config file touch-up (#327)
Sonar does not run because PR origin is external, ok to merge.
1 parent 6e1d33f commit a8f9cd8

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/app_log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @date 2021-12-16
55
* @brief
66
* Save and retrieve sensor readings to/from flash
7-
* for transmitting to station for sync.
7+
* for transmitting to station for sync.
88
* Allocate static input, output and config memory.
99
* Readings are blocked into a nearly page size buffer.
1010
* store_block by bumping index up to _DATA_RECORDS_NUM then wrap.

src/application_config/application_mode_debug.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define APPLICATION_MODE_DEBUG_H
33

44
#define APP_FW_VARIANT "+debug"
5-
#define RI_LOG_ENABLED 1
5+
#define RI_LOG_ENABLED (true)
66
#define APP_LOG_LEVEL RI_LOG_LEVEL_INFO
77
#define APP_WDT_INTERVAL_MS (10U*60U*1000U)
88
#define ENABLE_ALL_DATAFORMATS (1U)
@@ -11,11 +11,11 @@
1111
#define APP_BLE_INTERVAL_MS (221U)
1212

1313
/** @brief repeat same data N times in advertisement, reduce sensor reads. */
14-
#define APP_NUM_REPEATS 4
14+
#define APP_NUM_REPEATS (4U)
1515

1616
/** @brief Communicate sensor data at this interval. 221 matches Apple guideline. */
1717
#define APP_HEARTBEAT_INTERVAL_MS (APP_BLE_INTERVAL_MS * APP_NUM_REPEATS)
1818

1919
#define APP_LOG_INTERVAL_S (1U) //!< Gets limited to heartbeat rate.
2020

21-
#endif
21+
#endif // APPLICATION_MODE_DEBUG_H

src/ruuvi.firmware.c.emProject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@
12061206
<folder
12071207
Name="ruuvi.dps310.c"
12081208
exclude=""
1209-
filter="*c;*.h"
1209+
filter="*.c;*.h"
12101210
path="ruuvi.drivers.c/ruuvi.dps310.c/src"
12111211
recurse="Yes" />
12121212
</folder>

test/test_app_log.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* @file test/test_app_log.c
2+
*/
13
#include "unity.h"
24

35
#include "app_config.h"
@@ -886,7 +888,6 @@ void test_app_log_config_set_notinit (void)
886888
TEST_ASSERT (RD_ERROR_INVALID_STATE == err_code);
887889
}
888890

889-
890891
/**
891892
* @brief Read current logging configuration.
892893
*

0 commit comments

Comments
 (0)