1 parent 93208b8 commit 1b42fbaCopy full SHA for 1b42fba
src/main.cpp
@@ -139,6 +139,18 @@ void TestHeap(uint32_t Id)
139
LOG_PORT.println(String(" Heap After: ") + ESP.getFreeHeap());
140
}
141
142
+#ifdef CREATE_APP_MAIN
143
+extern "C" void app_main()
144
+{
145
+ initArduino();
146
+ setup();
147
+ while (true)
148
+ {
149
+ loop();
150
+ }
151
+}
152
+#endif // def CREATE_APP_MAIN
153
+
154
#ifdef ARDUINO_ARCH_ESP32
155
void esp_alloc_failed_hook_callback(size_t requested_size, uint32_t caps, const char *function_name)
156
{
0 commit comments