lengthCnt must be 16 Bit, one full tone for 160/4 has 375

This commit is contained in:
Wolfgang Hottgenroth 2024-03-29 15:52:12 +01:00
parent 0303bbdc3c
commit a1457e6a69
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ MCU=msp430g2553
CFLAGS=-Wall -mmcu=$(MCU) -std=gnu99 -I $(TOOLCHAIN_PREFIX)/include -O1 -g0
# for debugging
#CFLAGS+= -g3 -ggdb -gdwarf-2
CFLAGS+= -g3 -ggdb -gdwarf-2
LDFLAGS=-mmcu=$(MCU) -L $(TOOLCHAIN_PREFIX)/include

View File

@ -38,7 +38,7 @@ typedef enum {
typedef struct {
uint16_t idx;
uint8_t lengthCnt;
uint16_t lengthCnt;
t_sequencerState state;
uint8_t amplitude;
const t_tone *tones;