diff --git a/.gitea/workflows/sdcc.yml b/.gitea/workflows/sdcc.yml index b093e2b..6af4877 100644 --- a/.gitea/workflows/sdcc.yml +++ b/.gitea/workflows/sdcc.yml @@ -56,7 +56,7 @@ jobs: # Set CFLAGS to disable treating warnings as errors export CFLAGS="$CFLAGS -Wno-error" # ./configure --target=8051 --with-arch=8051 --prefix=/usr/local - ./configure --disable-gbz80-port --disable-z80-port --disable-ds390-port --disable-ds400-port --disable-pic14-port --disable-pic16-port --disable-hc08-port --disable-r2k-port --disable-z180-port --disable-sdcdb --disable-ucsim --prefix=/usr/local + ./configure --disable-gbz80-port --disable-z80-port --disable-ds390-port --disable-ds400-port --disable-pic14-port --disable-pic16-port --disable-hc08-port --disable-r2k-port --disable-z180-port --disable-sdcdb --disable-ucsim --target=8051 --with-arch=8051 --prefix=/usr/local make sudo make install diff --git a/Makefile b/Makefile index fc251e7..296e371 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ INCLUDE_DIRS = -I$(ZSTACK_DIR) # Compiler settings CC = sdcc # sdcc compiler -CFLAGS = -mmc51 $(INCLUDE_DIRS) # add include paths to compiler flags +CFLAGS = -mcs51 $(INCLUDE_DIRS) # add include paths to compiler flags SRC=$(wildcard *.c) HEADERS = main.h zigbee_comm.h sensors/bme280.h sensors/wind_vane.h sensors/rain_gauge.h sensors/anemometer.h config.h include/hal_types.h include/hal_defs.h include/hal_timer.h include/ZComDef.h include/OSAL.h include/i2c.h