mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
make btpin & btfactory accessible in BTADDON builds
This commit is contained in:
parent
9ac17cf7bf
commit
01ce580e7b
3 changed files with 7 additions and 1 deletions
|
@ -102,7 +102,7 @@ static command_t CommandTable[] = {
|
||||||
{"sc", CmdSmartcard, IfPm3Smartcard, "{ Smart card ISO7816 commands... }"},
|
{"sc", CmdSmartcard, IfPm3Smartcard, "{ Smart card ISO7816 commands... }"},
|
||||||
{"script", CmdScript, AlwaysAvailable, "{ Scripting commands }"},
|
{"script", CmdScript, AlwaysAvailable, "{ Scripting commands }"},
|
||||||
{"trace", CmdTrace, AlwaysAvailable, "{ Trace manipulation... }"},
|
{"trace", CmdTrace, AlwaysAvailable, "{ Trace manipulation... }"},
|
||||||
{"usart", CmdUsart, IfPm3FpcUsartDevFromUsb, "{ USART commands... }"},
|
{"usart", CmdUsart, IfPm3FpcUsartFromUsb, "{ USART commands... }"},
|
||||||
{"quit", CmdQuit, AlwaysAvailable, ""},
|
{"quit", CmdQuit, AlwaysAvailable, ""},
|
||||||
{"exit", CmdQuit, AlwaysAvailable, "Exit program"},
|
{"exit", CmdQuit, AlwaysAvailable, "Exit program"},
|
||||||
{NULL, NULL, NULL, NULL}
|
{NULL, NULL, NULL, NULL}
|
||||||
|
|
|
@ -72,6 +72,11 @@ bool IfPm3FpcUsartDevFromUsb(void) {
|
||||||
return !conn.send_via_fpc_usart;
|
return !conn.send_via_fpc_usart;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IfPm3FpcUsartFromUsb(void) {
|
||||||
|
// true if FPC USART Host or developer support and if talking from USB-CDC interface
|
||||||
|
return IfPm3FpcUsartHostFromUsb() || IfPm3FpcUsartDevFromUsb();
|
||||||
|
}
|
||||||
|
|
||||||
bool IfPm3Lf(void) {
|
bool IfPm3Lf(void) {
|
||||||
if (!IfPm3Present())
|
if (!IfPm3Present())
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -30,6 +30,7 @@ bool IfPm3FpcUsart(void);
|
||||||
bool IfPm3FpcUsartHost(void);
|
bool IfPm3FpcUsartHost(void);
|
||||||
bool IfPm3FpcUsartHostFromUsb(void);
|
bool IfPm3FpcUsartHostFromUsb(void);
|
||||||
bool IfPm3FpcUsartDevFromUsb(void);
|
bool IfPm3FpcUsartDevFromUsb(void);
|
||||||
|
bool IfPm3FpcUsartFromUsb(void);
|
||||||
bool IfPm3Lf(void);
|
bool IfPm3Lf(void);
|
||||||
bool IfPm3Hitag(void);
|
bool IfPm3Hitag(void);
|
||||||
bool IfPm3Hfsniff(void);
|
bool IfPm3Hfsniff(void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue