diff options
author | Bad Diode <bd@badd10de.dev> | 2024-01-25 13:41:06 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-01-25 13:41:06 +0100 |
commit | 8b34c630e2389df2b8892c7b3c52b8056ae5f8a1 (patch) | |
tree | 657447ef857858ecb0a06c885226be5f88b68162 /src | |
parent | e181b0e2209fd7a2e843bbb7cfe2151497450325 (diff) | |
download | stepper-8b34c630e2389df2b8892c7b3c52b8056ae5f8a1.tar.gz stepper-8b34c630e2389df2b8892c7b3c52b8056ae5f8a1.zip |
Fix bug when no profiling active
Diffstat (limited to 'src')
-rw-r--r-- | src/profiling.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/profiling.c b/src/profiling.c index 44e12fd..713e2b3 100644 --- a/src/profiling.c +++ b/src/profiling.c | |||
@@ -142,9 +142,7 @@ u8 prof_detail_level = 2; | |||
142 | #define FRAME_START() do { \ | 142 | #define FRAME_START() do { \ |
143 | profile_start();\ | 143 | profile_start();\ |
144 | } while(0) | 144 | } while(0) |
145 | #define FRAME_END() do { \ | 145 | #define FRAME_END() |
146 | frame_time = profile_stop();\ | ||
147 | } while(0) | ||
148 | #define PROF_SHOW() | 146 | #define PROF_SHOW() |
149 | #define PROF_DETAIL(N) | 147 | #define PROF_DETAIL(N) |
150 | #endif | 148 | #endif |