Skip to content

Commit

Permalink
Fixed Typo in For-Loop
Browse files Browse the repository at this point in the history
  • Loading branch information
JorgeMinjares committed Oct 27, 2023
1 parent 2558063 commit 9d2bbd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lab_7/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void PWMtask(void *pvParameters){
ledc_update_duty(LEDC_LOW_SPEED_MODE,LEDC_CHANNEL_1);
while(1){
// loop through the song
for(int note = 0; note < total_notes; notes++){
for(int note = 0; note < total_notes; note++){
if(freq[note] != REST){
ledc_timer_resume(LEDC_LOW_SPEED_MODE, LEDC_CHANNEL_1);
ledc_set_freq(LEDC_LOW_SPEED_MODE, LEDC_CHANNEL_1,freq[note]);
Expand Down
2 changes: 1 addition & 1 deletion doc_pages/lab7.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void PWMtask(void *pvParameters){
ledc_update_duty(LEDC_LOW_SPEED_MODE,LEDC_CHANNEL_1);
while(1){
// loop through the song
for(int note = 0; note < total_notes; notes++){
for(int note = 0; note < total_notes; note++){
if(freq[note] != REST){
ledc_timer_resume(LEDC_LOW_SPEED_MODE, LEDC_CHANNEL_1);
ledc_set_freq(LEDC_LOW_SPEED_MODE, LEDC_CHANNEL_1,freq[note]);
Expand Down

0 comments on commit 9d2bbd5

Please sign in to comment.