Skip to content

Commit

Permalink
fix simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
dron0gus committed Feb 25, 2024
1 parent 90ae9b9 commit d771984
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions firmware/controllers/system/periodic_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @author Andrey Belomutskiy, (c) 2012-2020
*/

#include "pch.h"

#if !EFI_UNIT_TEST

#include "ch.hpp"

#include "thread_controller.h"
Expand All @@ -15,8 +19,6 @@

#define JOBS_QUEUE_SIZE 16

#if !EFI_UNIT_TEST

static jobs_queue_t jq;
static job_descriptor_t jobs[JOBS_QUEUE_SIZE];
static msg_t msg_queue[JOBS_QUEUE_SIZE];
Expand Down
4 changes: 2 additions & 2 deletions simulator/chconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@
* @note The default is @p TRUE.
*/
#if !defined(CH_CFG_USE_MEMPOOLS)
#define CH_CFG_USE_MEMPOOLS FALSE
#define CH_CFG_USE_MEMPOOLS TRUE
#endif

/**
Expand Down Expand Up @@ -413,7 +413,7 @@
* @note The default is @p TRUE.
*/
#if !defined(CH_CFG_USE_JOBS)
#define CH_CFG_USE_JOBS FALSE
#define CH_CFG_USE_JOBS TRUE
#endif

/**
Expand Down

0 comments on commit d771984

Please sign in to comment.