We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
extern "C"
1 parent c1b9bfb commit 48c3549Copy full SHA for 48c3549
examples_esp/getting_started/src/main.cpp
@@ -5,10 +5,6 @@
5
#include "sdkconfig.h"
6
#include <driver/spi_master.h>
7
8
-#ifdef __cplusplus
9
-extern "C" {
10
-#endif
11
-
12
#ifdef RF24_CE_PIN
13
#define CE_PIN RF24_CE_PIN
14
#else
@@ -27,7 +23,7 @@ static const char* TAG = "RF24/examples_esp/getting_started";
27
23
28
24
spi_bus_config_t busConfig;
29
25
30
-void app_main(void)
26
+extern "C" void app_main(void)
31
{
32
#ifdef RF24_DEFAULT_MOSI
33
printf("using MOSI pin %d!\n", RF24_DEFAULT_MOSI);
@@ -73,7 +69,3 @@ void app_main(void)
73
69
vTaskDelay(1000 / portTICK_PERIOD_MS);
74
70
}
75
71
76
77
78
-}
79
0 commit comments