diff -r 49441045b192 -r dd6d40094782 targets/plc_debug.c --- a/targets/plc_debug.c Sat Mar 29 14:49:48 2014 +0100 +++ b/targets/plc_debug.c Sat Mar 29 19:03:00 2014 +0100 @@ -291,8 +291,7 @@ void FreeDebugData(void) { /* atomically mark buffer as free */ - long latest_state; - latest_state = AtomicCompareExchange( + AtomicCompareExchange( &buffer_state, BUFFER_BUSY, BUFFER_FREE);