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:
authorNikolay Minaylov <nm29719@gmail.com>2022-03-30 18:23:40 +0300
committerGitHub <noreply@github.com>2022-03-30 18:23:40 +0300
commit2f3ea9494e577dd4c0f0dd2bfa18871476f96c38 (patch)
tree89a9db4d3b63d6ad62e8199583da4afee37e6e5d /applications/subghz/subghz_history.c
parent648d8aaa54183224c8cf1560947875f0f6da76d3 (diff)
HAL to LL migration: GPIO, HSEM, AES (#1069)
* gpio, hsem, crypto: switch from HAL to LL/registers * Moved GPIO initialization to furi_hal * More HAL removed * All HAL modules disabled * HAL is finally removed * hal_gpio -> furi_hal_gpio, main.h removed * Bootloader build fix * RTOS config moved to freertos-glue * delay -> furi_hal_delay Co-authored-by: あく <alleteam@gmail.com>
Diffstat (limited to 'applications/subghz/subghz_history.c')
-rw-r--r--applications/subghz/subghz_history.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/subghz/subghz_history.c b/applications/subghz/subghz_history.c
index dc8d4fc6..cb30726b 100644
--- a/applications/subghz/subghz_history.c
+++ b/applications/subghz/subghz_history.c
@@ -140,13 +140,13 @@ bool subghz_history_add_to_history(
SubGhzProtocolDecoderBase* decoder_base = context;
if((instance->code_last_hash_data ==
subghz_protocol_decoder_base_get_hash_data(decoder_base)) &&
- ((millis() - instance->last_update_timestamp) < 500)) {
- instance->last_update_timestamp = millis();
+ ((furi_hal_get_tick() - instance->last_update_timestamp) < 500)) {
+ instance->last_update_timestamp = furi_hal_get_tick();
return false;
}
instance->code_last_hash_data = subghz_protocol_decoder_base_get_hash_data(decoder_base);
- instance->last_update_timestamp = millis();
+ instance->last_update_timestamp = furi_hal_get_tick();
string_t text;
string_init(text);