Skip to content

Commit

Permalink
fix tune len back to 128
Browse files Browse the repository at this point in the history
  • Loading branch information
Huibean committed Dec 31, 2024
1 parent 193dda7 commit 04a73ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Inc/eeprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ typedef union EEprom_u {
uint8_t sine_mode_power; // 45
uint8_t input_type; // 46
uint8_t auto_advance; // 47
uint8_t reserved_2[4]; //48-51
uint8_t tune[124]; // 52-175
uint8_t tune[128]; // 48-175
struct {
uint8_t can_node; // 176
uint8_t esc_index; // 177
Expand Down
3 changes: 2 additions & 1 deletion Src/sounds.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ void playBlueJayTune()
uint16_t frequency;
comStep(3);
// read_flash_bin(blueJayTuneBuffer , eeprom_address + 48 , 128);
for (int i = 0; i < 124; i += 2) {
// first 4 bytes are reversed for rtttl duration, octave, beat, tempo
for (int i = 4; i < 128; i += 2) {
RELOAD_WATCHDOG_COUNTER();
signaltimeout = 0;

Expand Down

0 comments on commit 04a73ba

Please sign in to comment.