Skip to content

Commit ad257f6

Browse files
committed
Add explicit robusto_time include, bump version
1 parent cc8e985 commit ad257f6

14 files changed

Lines changed: 18 additions & 8 deletions

File tree

components/robusto/conductor/src/robusto_conductor_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <robusto_network_service.h>
2020
#include <string.h>
2121
#include <inttypes.h>
22-
22+
#include <robusto_time.h>
2323
#define CYCLE_TIME_MS CONFIG_ROBUSTO_CONDUCTOR_SERVER_CYCLE_TIME_S * 1000
2424
#define AWAKE_TIME_MS CONFIG_ROBUSTO_CONDUCTOR_SERVER_AWAKE_TIME_S * 1000
2525
#define SERVER_MARGIN_MS CONFIG_ROBUSTO_CONDUCTOR_SERVER_MARGIN_S * 1000

components/robusto/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "2.1.17"
1+
version: "2.1.18"
22
description: "Robusto framework"
33
url: "https://github.com/RobustoFramework"
44
repository: "https://github.com/RobustoFramework/Robusto.git"

components/robusto/include/robusto_logging.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,19 @@ void r_init_logging();
153153
#define ROB_LOGV(tag, format, ...) ROB_LOG_LEVEL_LOCAL(ROB_LOG_VERBOSE, tag, format, ##__VA_ARGS__)
154154

155155
#define ROB_LOGI_STAY(tag, format, ...) rob_log_write(ROB_LOG_INFO, tag, ROB_LOG_FORMAT_NO_NL(I, format), ROB_LOG_TIME_SRC, tag, ##__VA_ARGS__)
156+
// Print a stack trace of the current call stack
157+
#define ROB_LOG_STACK_TRACE(levels) compat_rob_log_stack_trace(levels)
156158
#else
157159
#define ROB_LOGE(tag, format, ...) do {} while (0)
158160
#define ROB_LOGW(tag, format, ...) do {} while (0)
159161
#define ROB_LOGI(tag, format, ...) do {} while (0)
160162
#define ROB_LOGD(tag, format, ...) do {} while (0)
161163
#define ROB_LOGV(tag, format, ...) do {} while (0)
162-
#endif
164+
#define ROB_LOG_STACK_TRACE(levels) do {} while (0)
165+
#endif // ROB_LOG_LOCAL_LEVEL > ROB_LOG_NONE
166+
163167

164168

165-
// Print a stack trace of the current call stack
166-
#define ROB_LOG_STACK_TRACE(levels) compat_rob_log_stack_trace(levels)
167169

168170
void rob_log_bit_mesh(rob_log_level_t level,
169171
const char *tag,

components/robusto/input/src/robusto_input_adc_monitor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <robusto_system.h>
77
#include <inttypes.h>
88
#include <math.h>
9+
#include <robusto_time.h>
910

1011
#ifdef USE_ESPIDF
1112
#include "freertos/FreeRTOS.h"

components/robusto/misc/src/pubsub/robusto_pubsub_client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <robusto_pubsub.h>
88
#include <robusto_queue.h>
99
#include <string.h>
10+
#include <robusto_time.h>
1011

1112
static uint16_t pubsub_conversation_id = 1;
1213

components/robusto/misc/src/umts/robusto_umts_http.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "esp_http_client.h"
1313
#include <robusto_sleep.h>
1414
#include <cJSON.h>
15+
#include <robusto_time.h>
1516

1617
#ifdef CONFIG_ROBUSTO_FLASH_SPIFFS
1718
#include <robusto_flash.h>

components/robusto/network/src/media/canbus/canbus_messaging_esp32.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <driver/gpio.h>
1010
#include <driver/twai.h>
1111
#include <string.h>
12+
#include <robusto_time.h>
1213

1314
#define CANBUS_ADDR_LEN 1
1415
#define CANBUS_MAX_IN_FLIGHT 5

components/robusto/network/src/media/espnow/espnow_messaging.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#include <robusto_qos.h>
5050
#include "esp_crc.h"
5151
#include "esp_now.h"
52+
#include <robusto_time.h>
5253

5354
static char *espnow_log_prefix;
5455

components/robusto/network/src/media/mock/mock_messaging.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include <robusto_incoming.h>
4040
#include <inttypes.h>
4141
#include <string.h>
42-
42+
#include <robusto_time.h>
4343
#include "mock_queue.h"
4444

4545
// TODO: This is test data, question is if mock messaging should be in the components at all.

components/robusto/network/src/media/robusto_media.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include "robusto_media.h"
3535
#include "robusto_system.h"
3636
#include "robusto_logging.h"
37+
#include <robusto_time.h>
3738
#include <string.h>
3839

3940
#ifdef CONFIG_ROBUSTO_SUPPORTS_I2C

0 commit comments

Comments
 (0)