cleanup
This commit is contained in:
@@ -21,10 +21,6 @@
|
||||
|
||||
#define BYTES2UINT32(x) ((x[0] << 24) | (x[1] << 16) | (x[2] << 8) | (x[3]))
|
||||
|
||||
//==============================================================================
|
||||
// output functions
|
||||
//==============================================================================
|
||||
|
||||
static int CmdHelp(const char *Cmd);
|
||||
|
||||
static void prepare_result(const uint8_t *data, int fwr, int lwr, em4x50_word_t *words) {
|
||||
@@ -128,10 +124,6 @@ static void print_info_result(uint8_t *data) {
|
||||
PrintAndLogEx(NORMAL, "");
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// file/memory functions
|
||||
//==============================================================================
|
||||
|
||||
static int em4x50_load_file(const char *filename, uint8_t *data, size_t data_len, size_t *bytes_read) {
|
||||
|
||||
// read data from dump file; file type is derived from file name extension
|
||||
@@ -271,10 +263,6 @@ int CmdEM4x50ESave(const char *Cmd) {
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// login functions
|
||||
//==============================================================================
|
||||
|
||||
int CmdEM4x50Login(const char *Cmd) {
|
||||
|
||||
int pwdLen = 0;
|
||||
@@ -479,10 +467,6 @@ int CmdEM4x50Chk(const char *Cmd) {
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// read functions
|
||||
//==============================================================================
|
||||
|
||||
//quick test for EM4x50 tag
|
||||
bool detect_4x50_block(void) {
|
||||
em4x50_data_t etd = {
|
||||
@@ -803,10 +787,6 @@ int CmdEM4x50Dump(const char *Cmd) {
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// write functions
|
||||
//==============================================================================
|
||||
|
||||
int CmdEM4x50Write(const char *Cmd) {
|
||||
|
||||
// envoke writing a single word (32 bit) to a EM4x50 tag
|
||||
@@ -1144,10 +1124,6 @@ int CmdEM4x50Restore(const char *Cmd) {
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// simulate functions
|
||||
//==============================================================================
|
||||
|
||||
int CmdEM4x50Sim(const char *Cmd) {
|
||||
|
||||
int slen = 0, status = 0;
|
||||
@@ -1217,7 +1193,7 @@ int CmdEM4x50Sim(const char *Cmd) {
|
||||
}
|
||||
|
||||
static command_t CommandTable[] = {
|
||||
{"help", CmdHelp, AlwaysAvailable, "This help"},
|
||||
{"help", CmdHelp, AlwaysAvailable, "This help"},
|
||||
{"dump", CmdEM4x50Dump, IfPm3EM4x50, "dump EM4x50 tag"},
|
||||
{"info", CmdEM4x50Info, IfPm3EM4x50, "tag information EM4x50"},
|
||||
{"write", CmdEM4x50Write, IfPm3EM4x50, "write word data to EM4x50"},
|
||||
|
||||
Reference in New Issue
Block a user