Skip to content

Commit

Permalink
Merge pull request #9 from dron0gus/stable_20.3.rusefi
Browse files Browse the repository at this point in the history
Fix hooks
  • Loading branch information
dron0gus committed Jan 10, 2021
2 parents 0f6b266 + f88c9db commit 0b48974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions os/rt/include/chdebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
/*===========================================================================*/

#if CH_DBG_SYSTEM_STATE_CHECK == TRUE
#define _dbg_enter_lock() (ch.dbg.lock_cnt = (cnt_t)1; ON_LOCK_HOOK;)
#define _dbg_leave_lock() (ON_UNLOCK_HOOK; ch.dbg.lock_cnt = (cnt_t)0;)
#define _dbg_enter_lock() do {ch.dbg.lock_cnt = (cnt_t)1; ON_LOCK_HOOK;} while(0)
#define _dbg_leave_lock() do {ON_UNLOCK_HOOK; ch.dbg.lock_cnt = (cnt_t)0;} while(0)
#endif

/* When the state checker feature is disabled then the following functions
Expand Down

0 comments on commit 0b48974

Please sign in to comment.