Change timing notation
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
# Definitions.
|
||||
CC = avr-gcc
|
||||
CFLAGS = -mmcu=atmega32u2 -Os -Wall -Wstrict-prototypes -Wextra -g -I../../drivers -I../../extra -I../../drivers/avr -I../../fonts -I../../utils
|
||||
CFLAGS = -mmcu=atmega32u2 -Os -finline -Wall -Wstrict-prototypes -Wextra -g -I../../drivers -I../../extra -I../../drivers/avr -I../../fonts -I../../utils
|
||||
OBJCOPY = avr-objcopy
|
||||
SIZE = avr-size
|
||||
DEL = rm
|
||||
|
||||
@@ -51,7 +51,7 @@ void
|
||||
note_play (tweeter_t tweeter, tweeter_note_t note, uint8_t velocity)
|
||||
{
|
||||
tinygl_clear ();
|
||||
if (note != 0)
|
||||
if (note != 0 && velocity != 0)
|
||||
tinygl_draw_string (note_names[note % 12], tinygl_point (0, 0), 1);
|
||||
|
||||
tweeter_note_play (tweeter, note, velocity);
|
||||
|
||||
Reference in New Issue
Block a user