[AFSK] Fixed sign
This commit is contained in:
parent
8e73621701
commit
0831b4a3a1
1 changed files with 4 additions and 4 deletions
|
@ -70,7 +70,7 @@ void loop() {
|
||||||
int wholenote = (60000 * 4) / 120;
|
int wholenote = (60000 * 4) / 120;
|
||||||
|
|
||||||
// iterate over the melody
|
// iterate over the melody
|
||||||
for(int note = 0; note < sizeof(melody) / sizeof(melody[0]); note += 2) {
|
for(unsigned int note = 0; note < sizeof(melody) / sizeof(melody[0]); note += 2) {
|
||||||
// calculate the duration of each note
|
// calculate the duration of each note
|
||||||
int noteDuration = 0;
|
int noteDuration = 0;
|
||||||
int divider = melody[note + 1];
|
int divider = melody[note + 1];
|
||||||
|
|
Loading…
Add table
Reference in a new issue