diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-10 17:51:41 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-10 17:51:41 +0300 |
commit | 5e1f22faebd26fb925bc3d713f66cad32fb84da6 (patch) | |
tree | 6a5449161a77e9afe31f639955b1b029c6b76acb | |
parent | a4a6e7865cf48f2a63971781c6a43faa17f6ae77 (diff) |
Slow blinking
-rw-r--r-- | Core/Src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Core/Src/main.c b/Core/Src/main.c index 8ed9b03..6fc1d2c 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -212,7 +212,7 @@ int main(void) // Blink on error
HAL_GPIO_WritePin(
LED_USB_GPIO_Port, LED_USB_Pin,
- (HAL_GetTick() % 100 < 50) ? GPIO_PIN_SET : GPIO_PIN_RESET);
+ (HAL_GetTick() % 1000 > 100) ? GPIO_PIN_SET : GPIO_PIN_RESET);
break;
}
|