mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-11-28 02:45:45 +03:00
[FL-1318] Fix cyfral and metakom keys reading (#474)
This commit is contained in:
parent
4fa49882e0
commit
a9083561fa
@ -142,8 +142,10 @@ void KeyReader::comparator_trigger_callback(void* hcomp, void* comp_ctx) {
|
||||
if(hcomp == &hcomp1) {
|
||||
uint32_t current_dwt_value = DWT->CYCCNT;
|
||||
|
||||
_this->cyfral_decoder.process_front(hal_gpio_get_rfid_in_level(), current_dwt_value);
|
||||
_this->metakom_decoder.process_front(hal_gpio_get_rfid_in_level(), current_dwt_value);
|
||||
_this->cyfral_decoder.process_front(
|
||||
hal_gpio_get_rfid_in_level(), current_dwt_value - last_dwt_value);
|
||||
_this->metakom_decoder.process_front(
|
||||
hal_gpio_get_rfid_in_level(), current_dwt_value - last_dwt_value);
|
||||
|
||||
last_dwt_value = DWT->CYCCNT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user