Skip to content

Commit

Permalink
codal_port/modspeech: include mphal.h for the simulator
Browse files Browse the repository at this point in the history
MICROPY_BEGIN_ATOMIC_SECTION/MICROPY_END_ATOMIC_SECTION are only defined
in modspeech because of mpconfigport.h (indirectly). Include mphal.h so
that the defaults are defined if the port does not define them (as in
the sim case).
  • Loading branch information
microbit-matt-hillsdon committed Mar 21, 2024
1 parent e86bc10 commit 03d5c04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/codal_port/modspeech.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <stdio.h>
#include <string.h>

#include "py/mphal.h"
#include "py/obj.h"
#include "py/objtuple.h"
#include "py/objstr.h"
Expand Down

0 comments on commit 03d5c04

Please sign in to comment.