diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-23 12:56:21 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-23 12:56:21 +0200 |
commit | 2c94e4478558551dbebdc8fa8682661fa60a1c75 (patch) | |
tree | 12102d584b1e511f65aa0f39c1ea8c4f85aac16c /robot/errcatch.c | |
parent | 22f92030b316f98c5f8d3a54d0a937ab12fe148e (diff) |
fix segfault
Diffstat (limited to 'robot/errcatch.c')
-rw-r--r-- | robot/errcatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/robot/errcatch.c b/robot/errcatch.c index 82da820..2a59d3d 100644 --- a/robot/errcatch.c +++ b/robot/errcatch.c @@ -14,7 +14,7 @@ uint8_t g_w2_error_buffer_full = 0; uint8_t g_w2_error_uncaught = 0; void w2_errcatch_main() { - while (g_w2_error_index != g_w2_error_offset) { + while (g_w2_error_offset != g_w2_error_index) { w2_s_error *error = g_w2_error_buffer[g_w2_error_offset]; w2_errcatch_handle_error(error); g_w2_error_offset = (g_w2_error_offset + 1) % W2_ERROR_BUFFER_SIZE; |