Skip to content

Commit

Permalink
cc3200: Fix debug build.
Browse files Browse the repository at this point in the history
* Fix a typo in the Makefile that prevented the debug build to be actually
  enabled when BTYPE=debug is used.

* Add a missing header in modmachine.c that is used when a debug build is
  created.
  • Loading branch information
VinDuv authored and dpgeorge committed Jan 23, 2021
1 parent 342dc61 commit 45f0b6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ports/cc3200/application.mk
Expand Up @@ -182,7 +182,7 @@ ifeq ($(BTYPE), release)
CFLAGS += -DNDEBUG
else
ifeq ($(BTYPE), debug)
CFLAGS += -DNDEBUG
CFLAGS += -DDEBUG
else
$(error Invalid BTYPE specified)
endif
Expand Down
1 change: 1 addition & 0 deletions ports/cc3200/mods/modmachine.c
Expand Up @@ -26,6 +26,7 @@
*/

#include <stdint.h>
#include <stdio.h>

#include "py/runtime.h"
#include "py/mphal.h"
Expand Down

0 comments on commit 45f0b6a

Please sign in to comment.