Skip to content

Commit 871dc98

Browse files
committed
size optimizations: remove atexit
Former-commit-id: 812256c
1 parent 73eb3f9 commit 871dc98

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

cores/arduino/main.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,11 @@ extern "C" __attribute__((weak)) int _write (int fhdl, const void *buf, size_t c
126126
}
127127
#endif
128128

129-
#ifdef AZURE_RTOS_THREADX
130-
extern "C" {
131-
void main_thd_entry(void) {
132-
arduino_main();
133-
}
134-
}
135-
#else
136129
extern "C" {
137130
void hal_entry(void) {
138131
arduino_main();
139132
}
140133
}
141-
#endif
134+
135+
//Declared weak in Arduino.h to allow user redefinitions.
136+
int atexit(void (*func)()) { return 0; }

0 commit comments

Comments
 (0)