Browse Source

Fix relative paths in prototypes.h (#1878)

Fix Arduino IDE error by changing to proper relative paths:

```
In file included from sketch\config/all.h:36:0, from C:\Programy\arduino_projekty\espurna_dev\code\espurna\espurna.ino:22:
sketch\config/prototypes.h:178:86: fatal error: static/letsencrypt_isrgroot_pem.h: No such file or directory

#include "static/letsencrypt_isrgroot_pem.h" // Default to LetsEncrypt X3 certificate

compilation terminated.
```
master
reaper7 5 years ago
committed by Max Prokhorov
parent
commit
bbb4c061f6
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      code/espurna/config/prototypes.h

+ 4
- 4
code/espurna/config/prototypes.h View File

@ -173,9 +173,9 @@ using mqtt_callback_f = std::function<void(unsigned int, const char *, char *)>;
#endif #endif
#if MQTT_SECURE_CLIENT_INCLUDE_CA #if MQTT_SECURE_CLIENT_INCLUDE_CA
#include "static/mqtt_secure_client_ca.h" // Assumes this header file defines a _mqtt_client_ca[] PROGMEM = "...PEM data..."
#include "../static/mqtt_secure_client_ca.h" // Assumes this header file defines a _mqtt_client_ca[] PROGMEM = "...PEM data..."
#else #else
#include "static/letsencrypt_isrgroot_pem.h" // Default to LetsEncrypt X3 certificate
#include "../static/letsencrypt_isrgroot_pem.h" // Default to LetsEncrypt X3 certificate
#define _mqtt_client_ca _ssl_letsencrypt_isrg_x3_ca #define _mqtt_client_ca _ssl_letsencrypt_isrg_x3_ca
#endif // MQTT_SECURE_CLIENT_INCLUDE_CA #endif // MQTT_SECURE_CLIENT_INCLUDE_CA
@ -199,9 +199,9 @@ using mqtt_callback_f = std::function<void(unsigned int, const char *, char *)>;
#include <WiFiClientSecure.h> #include <WiFiClientSecure.h>
#if OTA_SECURE_CLIENT_INCLUDE_CA #if OTA_SECURE_CLIENT_INCLUDE_CA
#include "static/ota_secure_client_ca.h"
#include "../static/ota_secure_client_ca.h"
#else #else
#include "static/digicert_evroot_pem.h"
#include "../static/digicert_evroot_pem.h"
#define _ota_client_http_update_ca _ssl_digicert_ev_root_ca #define _ota_client_http_update_ca _ssl_digicert_ev_root_ca
#endif #endif


Loading…
Cancel
Save