Skip to content

Commit

Permalink
フォーマットチェックを通すためにwhile文にcontinueを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeKato committed Sep 19, 2024
1 parent 7964d5e commit 7cf5b4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STM32CubeIDE_Sample/STEP4/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int main(void)
HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, 1);
count++;
HAL_Delay(30);
while (HAL_GPIO_ReadPin(SW1_GPIO_Port, SW1_Pin) == 0);
while (HAL_GPIO_ReadPin(SW1_GPIO_Port, SW1_Pin) == 0) continue;
HAL_Delay(30);
} else {
HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, 0);
Expand Down

0 comments on commit 7cf5b4d

Please sign in to comment.