Skip to content

Commit a00ede2

Browse files
Added extern C for arduino ad esp idf component (platformio#547)
Co-authored-by: Hemanth Bollamreddi <[email protected]>
1 parent 7138f22 commit a00ede2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/espidf-arduino-blink/src/Blink.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void arduinoTask(void *pvParameter) {
5151
}
5252
}
5353

54-
void app_main()
54+
extern "C" void app_main()
5555
{
5656
// initialize arduino library before we start the tasks
5757
initArduino();
@@ -70,4 +70,4 @@ void loop() {
7070
Serial.println("Hello!");
7171
delay(1000);
7272
}
73-
#endif
73+
#endif

examples/espidf-arduino-wifiscan/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void arduinoTask(void *pvParameter) {
5151
}
5252
}
5353

54-
void app_main()
54+
extern "C" void app_main()
5555
{
5656
// initialize arduino library before we start the tasks
5757
initArduino();

0 commit comments

Comments
 (0)