mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
rename globals
This commit is contained in:
parent
437f5f6448
commit
5b54385347
34 changed files with 458 additions and 458 deletions
|
@ -189,7 +189,7 @@ int BUTTON_CLICKED(int ms) {
|
|||
// timer counts in 21.3us increments (1024/48MHz)
|
||||
// WARNING: timer can't measure more than 1.39s (21.3us * 0xffff)
|
||||
if (ms > 1390) {
|
||||
if (DBGLEVEL >= DBG_ERROR) Dbprintf(_RED_("Error, BUTTON_CLICKED called with %i > 1390"), ms);
|
||||
if (g_dbglevel >= DBG_ERROR) Dbprintf(_RED_("Error, BUTTON_CLICKED called with %i > 1390"), ms);
|
||||
ms = 1390;
|
||||
}
|
||||
int ticks = ((MCK / 1000) * (ms ? ms : 1000)) >> 10;
|
||||
|
@ -252,7 +252,7 @@ int BUTTON_HELD(int ms) {
|
|||
// timer counts in 21.3us increments (1024/48MHz)
|
||||
// WARNING: timer can't measure more than 1.39s (21.3us * 0xffff)
|
||||
if (ms > 1390) {
|
||||
if (DBGLEVEL >= DBG_ERROR) Dbprintf(_RED_("Error, BUTTON_HELD called with %i > 1390"), ms);
|
||||
if (g_dbglevel >= DBG_ERROR) Dbprintf(_RED_("Error, BUTTON_HELD called with %i > 1390"), ms);
|
||||
ms = 1390;
|
||||
}
|
||||
// If button is held for one second
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue