# HG changeset patch # User Edouard Tisserant # Date 1658484892 -7200 # Node ID 58c09e84c3694282462dee8ba9f6ab9bf088d67f # Parent 59158e360b8c1335c6eb4f6539cc9d9f103dc299 Runtime: Retain: fix missuse of static classifier leading to ever increasing offset. diff -r 59158e360b8c -r 58c09e84c369 targets/plc_debug.c --- a/targets/plc_debug.c Thu Jul 14 11:40:27 2022 +0200 +++ b/targets/plc_debug.c Fri Jul 22 12:14:52 2022 +0200 @@ -140,7 +140,7 @@ InitRetain(); /* Iterate over all variables to fill debug buffer */ if(CheckRetainBuffer()){ - static unsigned int retain_offset = 0; + unsigned int retain_offset = 0; retain_list_collect_cursor = 0; /* iterate over retain list */ @@ -322,7 +322,7 @@ LeaveDebugSection(); } #endif - static unsigned int retain_offset = 0; + unsigned int retain_offset = 0; /* when not debugging, do only retain */ retain_list_collect_cursor = 0;