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:
Diffstat (limited to 'applications/ibutton/helpers/key-emulator.cpp')
-rw-r--r--applications/ibutton/helpers/key-emulator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/applications/ibutton/helpers/key-emulator.cpp b/applications/ibutton/helpers/key-emulator.cpp
index 7c8c5c97..a09d83e8 100644
--- a/applications/ibutton/helpers/key-emulator.cpp
+++ b/applications/ibutton/helpers/key-emulator.cpp
@@ -17,6 +17,9 @@ void KeyEmulator::start(iButtonKey* key) {
anything_emulated = false;
stop();
+ // pulldown pull pin, to prevent low-pass filtering by the RFID part of the schematic
+ furi_hal_rfid_pin_pull_pulldown();
+
switch(key->get_key_type()) {
case iButtonKeyType::KeyDallas:
start_dallas_emulate(key);
@@ -44,6 +47,7 @@ bool KeyEmulator::emulated() {
void KeyEmulator::stop() {
onewire_slave->stop();
pulser.stop();
+ furi_hal_rfid_pins_reset();
}
void KeyEmulator::start_cyfral_emulate(iButtonKey* key) {