Skip to content

Commit

Permalink
Fix unit tests after latest rebase.
Browse files Browse the repository at this point in the history
  • Loading branch information
adbancroft committed Dec 7, 2024
1 parent 7642346 commit e0ad554
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_schedules/test_state_machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ static void test_defaultPendingToRunning(void) {
schedule.Status = PENDING;
startCount = 0;
endCount = 0;
ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
ATOMIC() {
IGN1_TIMER_DISABLE();
schedule.Duration = uS_TO_TIMER_COMPARE(2048);
#if defined(CORE_AVR)
Expand Down Expand Up @@ -70,7 +70,7 @@ static void test_defaultRunningToPending(void) {
startCount = 0;
endCount = 0;

ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
ATOMIC() {
IGN1_TIMER_DISABLE();
schedule.nextStartCompare = schedule._counter + uS_TO_TIMER_COMPARE(2048);

Expand Down
1 change: 1 addition & 0 deletions test/test_sensors/test_map_sampling.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <unity.h>
#include "../test_utils.h"
#include "globals.h"
#include "sensors_map_structs.h"

static void test_instantaneous(void) {
Expand Down

0 comments on commit e0ad554

Please sign in to comment.