Added extern C for arduino ad esp idf component (#547)
Co-authored-by: Hemanth Bollamreddi <hbollamreddi@vmware.com>
This commit is contained in:
committed by
GitHub
parent
7138f22a5f
commit
a00ede298e
@@ -51,7 +51,7 @@ void arduinoTask(void *pvParameter) {
|
||||
}
|
||||
}
|
||||
|
||||
void app_main()
|
||||
extern "C" void app_main()
|
||||
{
|
||||
// initialize arduino library before we start the tasks
|
||||
initArduino();
|
||||
@@ -70,4 +70,4 @@ void loop() {
|
||||
Serial.println("Hello!");
|
||||
delay(1000);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -51,7 +51,7 @@ void arduinoTask(void *pvParameter) {
|
||||
}
|
||||
}
|
||||
|
||||
void app_main()
|
||||
extern "C" void app_main()
|
||||
{
|
||||
// initialize arduino library before we start the tasks
|
||||
initArduino();
|
||||
|
||||
Reference in New Issue
Block a user