fix app router (#808)

with optimize Os the program exits with
bit out of range 0 - FD_SETSIZE on fd_set

Disable optimize for size by static set optimize 2

This Fix #793
This commit is contained in:
Patrick Grimm
2024-10-14 14:56:37 +02:00
committed by GitHub
parent 2d98e2f625
commit b555e4a440
+3 -1
View File
@@ -22,7 +22,9 @@ uint8_t test_packet[] = { 0x81, 0x0a, 0x00, 0x16, /* BVLC header */
0x00, 0x02, 0x19, 0x55 }; /* APDU */
#endif
void *dl_ip_thread(void *pArgs)
/* BUG with optimize Os */
/* *** bit out of range 0 - FD_SETSIZE on fd_set ***: terminated */
void __attribute__((optimize("O2"))) * dl_ip_thread(void *pArgs)
{
MSGBOX_ID msgboxid;
BACMSG msg_storage, *bacmsg = NULL;