mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
CHG: the thread comms refactoring from offical pm3 repo
chg: FPC com speed limited to 115200 when compiled with FPC chg: USART remake (@drandreas)
This commit is contained in:
parent
eb0b5116a2
commit
24eaac8681
45 changed files with 915 additions and 949 deletions
|
@ -320,7 +320,7 @@ int CmdLFSetConfig(const char *Cmd) {
|
|||
}
|
||||
|
||||
bool lf_read(bool silent, uint32_t samples) {
|
||||
if (offline) return false;
|
||||
if ( IsOffline() ) return false;
|
||||
UsbCommand c = {CMD_ACQUIRE_RAW_ADC_SAMPLES_125K, {silent, samples, 0}};
|
||||
clearCommandBuffer();
|
||||
SendCommand(&c);
|
||||
|
@ -342,7 +342,7 @@ bool lf_read(bool silent, uint32_t samples) {
|
|||
|
||||
int CmdLFRead(const char *Cmd) {
|
||||
|
||||
if (offline) return 0;
|
||||
if ( IsOffline() ) return 0;
|
||||
|
||||
bool errors = false;
|
||||
bool silent = false;
|
||||
|
@ -844,7 +844,7 @@ int CmdLFfind(const char *Cmd) {
|
|||
|
||||
if (cmdp == 'u') testRaw = 'u';
|
||||
|
||||
bool isOnline = (!offline && (cmdp != '1') );
|
||||
bool isOnline = (!IsOffline() && (cmdp != '1') );
|
||||
|
||||
if (isOnline)
|
||||
lf_read(true, 30000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue