diff --git a/bthome_phy6222/SDK/lib/rf/patch.c b/bthome_phy6222/SDK/lib/rf/patch.c index cb37d7b..6adb0bb 100644 --- a/bthome_phy6222/SDK/lib/rf/patch.c +++ b/bthome_phy6222/SDK/lib/rf/patch.c @@ -5664,6 +5664,11 @@ void config_RTC1(uint32 time) @return None. */ uint32 sleep_total; +#ifdef __GNUC__ +// Indicate that the specified function does not need prologue/epilogue sequences +// generated by the compiler. And function doesn't return. +void wakeupProcess1(void) __attribute__ ((naked)); +#endif void wakeupProcess1(void) { uint32 current_RTC_tick;