Skip to content

Commit ea791c3

Browse files
committed
WIP WIP WIP : prevent a crash at boot (to be analysed)
Signed-off-by: Ludovic LANGE <llange@users.noreply.github.com>
1 parent d844398 commit ea791c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vehicle/OVMS.V3/main/ovms_console.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include "ovms_console.h"
3636
#include "ovms_version.h"
3737
#include "log_buffers.h"
38+
#include "esp_idf_version.h"
3839

3940
//static const char *TAG = "Console";
4041
static char CRbuf[4] = { '\r', '\033', '[', 'K' };
@@ -124,6 +125,9 @@ void OvmsConsole::Service()
124125

125126
void OvmsConsole::Poll(portTickType ticks, QueueHandle_t queue)
126127
{
128+
#if ESP_IDF_VERSION_MAJOR >= 4
129+
static
130+
#endif
127131
Event event;
128132

129133
if (!queue)

0 commit comments

Comments
 (0)