Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSG <who.just.the.doctor@gmail.com>2021-09-24 14:56:27 +0300
committerGitHub <noreply@github.com>2021-09-24 14:56:27 +0300
commit1448b9cf669b92d1d1ea1bf0aea4f5034e2d129f (patch)
tree5c5bbe79d438cc128f3e36a40130090126f5a208 /firmware
parent0ff677b1743705c59c2ccd8405ff91273ea7d8fd (diff)
[FL-1819][FL-1848] About: hw, fw, boot version screens. Misc corrections of the About screens. (#719)
* About: hw, fw, boot version screens * About: fix comment * FuriHal: proper ARR in OS tick timer * GpioTester: all pins on/off option * Irda: fix release build * Format sources Co-authored-by: あく <alleteam@gmail.com>
Diffstat (limited to 'firmware')
-rw-r--r--firmware/targets/f6/furi-hal/furi-hal-os-timer.h2
-rw-r--r--firmware/targets/f7/furi-hal/furi-hal-os-timer.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/firmware/targets/f6/furi-hal/furi-hal-os-timer.h b/firmware/targets/f6/furi-hal/furi-hal-os-timer.h
index f210b539..8b7752e8 100644
--- a/firmware/targets/f6/furi-hal/furi-hal-os-timer.h
+++ b/firmware/targets/f6/furi-hal/furi-hal-os-timer.h
@@ -20,6 +20,7 @@ static inline void furi_hal_os_timer_init() {
}
static inline void furi_hal_os_timer_continuous(uint32_t count) {
+ count--;
// Enable timer
LL_LPTIM_Enable(FURI_HAL_OS_TIMER);
while(!LL_LPTIM_IsEnabled(FURI_HAL_OS_TIMER));
@@ -33,6 +34,7 @@ static inline void furi_hal_os_timer_continuous(uint32_t count) {
}
static inline void furi_hal_os_timer_single(uint32_t count) {
+ count--;
// Enable timer
LL_LPTIM_Enable(FURI_HAL_OS_TIMER);
while(!LL_LPTIM_IsEnabled(FURI_HAL_OS_TIMER));
diff --git a/firmware/targets/f7/furi-hal/furi-hal-os-timer.h b/firmware/targets/f7/furi-hal/furi-hal-os-timer.h
index f210b539..8b7752e8 100644
--- a/firmware/targets/f7/furi-hal/furi-hal-os-timer.h
+++ b/firmware/targets/f7/furi-hal/furi-hal-os-timer.h
@@ -20,6 +20,7 @@ static inline void furi_hal_os_timer_init() {
}
static inline void furi_hal_os_timer_continuous(uint32_t count) {
+ count--;
// Enable timer
LL_LPTIM_Enable(FURI_HAL_OS_TIMER);
while(!LL_LPTIM_IsEnabled(FURI_HAL_OS_TIMER));
@@ -33,6 +34,7 @@ static inline void furi_hal_os_timer_continuous(uint32_t count) {
}
static inline void furi_hal_os_timer_single(uint32_t count) {
+ count--;
// Enable timer
LL_LPTIM_Enable(FURI_HAL_OS_TIMER);
while(!LL_LPTIM_IsEnabled(FURI_HAL_OS_TIMER));