From 9d2bbd5b5006198c5bfffd477598a5203191b634 Mon Sep 17 00:00:00 2001 From: JorgeMinjares Date: Fri, 27 Oct 2023 10:03:02 -0600 Subject: [PATCH] Fixed Typo in For-Loop --- Lab_7/README.md | 2 +- doc_pages/lab7.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lab_7/README.md b/Lab_7/README.md index 5803689..9414932 100644 --- a/Lab_7/README.md +++ b/Lab_7/README.md @@ -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]); diff --git a/doc_pages/lab7.md b/doc_pages/lab7.md index a430b5f..9754680 100644 --- a/doc_pages/lab7.md +++ b/doc_pages/lab7.md @@ -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]);