Skip to content

Commit 44f05c3

Browse files
committed
fix workflows
1 parent ab7b266 commit 44f05c3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/pio.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
example: [examples/ESP/main.cpp, examples/ESP-TLS/main.cpp]
21+
pio_platform: [nodemcuv2, esp32-development-board]
2122

2223
steps:
2324
- uses: actions/checkout@v2
@@ -42,6 +43,6 @@ jobs:
4243
- name: Install library dependencies
4344
run: pio pkg install
4445
- name: Run PlatformIO
45-
run: pio ci --lib="." --project-conf=platformio.ini ${{ matrix.dashboard-extra }}
46+
run: pio ci --lib="." --project-conf=platformio.ini -e ${{ matrix.pio_platform }} ${{ matrix.dashboard-extra }}
4647
env:
4748
PLATFORMIO_CI_SRC: ${{ matrix.example }}

src/MicroOcpp/Context.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <MicroOcpp/Core/Ftp.h>
99
#include <MicroOcpp/Model/Model.h>
1010
#include <MicroOcpp/Model/Certificates/Certificate.h>
11+
#include <MicroOcpp/Model/Certificates/CertificateMbedTLS.h>
1112

1213
#include <MicroOcpp/Debug.h>
1314

@@ -209,7 +210,7 @@ void Context::setCertificateStore(CertificateStore *certStore) {
209210
CertificateStore *Context::getCertificateStore() {
210211
#if MO_ENABLE_CERT_MGMT && MO_ENABLE_CERT_STORE_MBEDTLS
211212
if (!certStore && filesystem) {
212-
certStore = makeCertificateStoreMbedTLS(filesystem);
213+
certStore = makeCertificateStoreMbedTLS(filesystem).release();
213214
if (!certStore) {
214215
MO_DBG_ERR("OOM");
215216
return nullptr;

0 commit comments

Comments
 (0)