Minor changes
This commit is contained in:
Родитель
7a5698b15b
Коммит
b1fb390098
10
Makefile
10
Makefile
|
@ -1,9 +1,5 @@
|
|||
PREFIX = arm-none-eabi-
|
||||
CC = $(PREFIX)gcc
|
||||
AS = $(PREFIX)as
|
||||
|
||||
TARGET ?= jdm-v3
|
||||
PROF ?= acc
|
||||
PROF ?= glo
|
||||
FORCE ?=
|
||||
|
||||
.SECONDARY: # this prevents object files from being removed
|
||||
|
@ -11,6 +7,10 @@ FORCE ?=
|
|||
|
||||
JD_CORE = jacdac-core
|
||||
|
||||
PREFIX = arm-none-eabi-
|
||||
CC = $(PREFIX)gcc
|
||||
AS = $(PREFIX)as
|
||||
|
||||
WARNFLAGS = -Wall -Wno-strict-aliasing
|
||||
CFLAGS = $(DEFINES) \
|
||||
-mthumb -mfloat-abi=soft \
|
||||
|
|
|
@ -132,6 +132,7 @@ static int isin(uint8_t theta) {
|
|||
}
|
||||
|
||||
static bool is_enabled(srv_t *state) {
|
||||
// TODO check if all pixels are zero
|
||||
return state->numpixels > 0 && state->intensity > 0;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче