CHG: 'standalone bogitorun' - adapted some ledshow from Kigiv mode and increased time for user to stop pressing button after triggering the mode..

This commit is contained in:
Chris 2018-11-06 22:20:55 +01:00
commit 078196773c
5 changed files with 86 additions and 74 deletions

View file

@ -57,10 +57,9 @@ void EraseMemory() {
SpinDelay(100);
}
// This is actually copied from SniffIso14443a
void RAMFUNC SniffAndStore(uint8_t param) {
/* This is actually copied from SniffIso14443a */
iso14443a_setup(FPGA_HF_ISO14443A_SNIFFER);
// Allocate memory from BigBuf for some buffers
@ -269,7 +268,16 @@ void RAMFUNC SniffAndStore(uint8_t param) {
}
void RunMod() {
Dbprintf("Sniffing started");
Dbprintf(">> Bogiton 14a Sniff UL/UL-EV1/NTAG a.k.a BogitoRun Started <<");
Dbprintf("Starting to sniff");
SpinDown(50);
SpinOff(50);
SpinUp(50);
SpinOff(50);
SpinDown(50);
SpinDelay(500);
// param:
// bit 0 - trigger from first card answer
@ -277,4 +285,5 @@ void RunMod() {
SniffAndStore(0);
LEDsoff();
SpinDelay(300);
Dbprintf("- [ End ] -> You can take shell back ...");
}