From b3adac6168087d852ea6c6e396b2e0d58ea2068b Mon Sep 17 00:00:00 2001 From: froloffw7 <69122526+froloffw7@users.noreply.github.com> Date: Tue, 9 Jan 2024 12:34:48 +0100 Subject: [PATCH] Update patch.c Add `naked` attribute to the function wakeupProcess1() --- bthome_phy6222/SDK/lib/rf/patch.c | 5 +++++ 1 file changed, 5 insertions(+) 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;