mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-16 10:03:04 -07:00
make style
This commit is contained in:
parent
05b4b27823
commit
41f36ca20b
13 changed files with 89 additions and 89 deletions
|
@ -547,7 +547,7 @@ int CmdT55xxDetect(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!tryDetectModulation())
|
if (!tryDetectModulation())
|
||||||
PrintAndLogEx(WARNING, "Could not detect modulation automatically. Try setting it manually with " _YELLOW_("\'lf t55xx config\'") );
|
PrintAndLogEx(WARNING, "Could not detect modulation automatically. Try setting it manually with " _YELLOW_("\'lf t55xx config\'"));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -712,7 +712,7 @@ static int l_T55xx_readblock(lua_State *L) {
|
||||||
|
|
||||||
//Check number of arguments
|
//Check number of arguments
|
||||||
int n = lua_gettop(L);
|
int n = lua_gettop(L);
|
||||||
if ( n != 4 ) {
|
if (n != 4) {
|
||||||
return returnToLuaWithError(L, "Wrong number of arguments, got %d bytes, expected 4", n);
|
return returnToLuaWithError(L, "Wrong number of arguments, got %d bytes, expected 4", n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -733,7 +733,7 @@ static int l_T55xx_readblock(lua_State *L) {
|
||||||
sscanf(p_override, "%x", &override);
|
sscanf(p_override, "%x", &override);
|
||||||
|
|
||||||
const char *p_pwd = luaL_checklstring(L, 4, &size);
|
const char *p_pwd = luaL_checklstring(L, 4, &size);
|
||||||
if ( size == 0 ) {
|
if (size == 0) {
|
||||||
usepwd = false;
|
usepwd = false;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
@ -796,12 +796,12 @@ static int l_T55xx_detect(lua_State *L) {
|
||||||
const char *p_gb = luaL_checklstring(L, 2, &size);
|
const char *p_gb = luaL_checklstring(L, 2, &size);
|
||||||
if (size != 1) return returnToLuaWithError(L, "Wrong size of useGB, got %d , expected 1", (int) size);
|
if (size != 1) return returnToLuaWithError(L, "Wrong size of useGB, got %d , expected 1", (int) size);
|
||||||
sscanf(p_gb, "%u", &gb);
|
sscanf(p_gb, "%u", &gb);
|
||||||
useGB = ( gb ) ? true : false;
|
useGB = (gb) ? true : false;
|
||||||
printf("p_gb size %zu | %c \n", size, useGB ? 'Y':'N');
|
printf("p_gb size %zu | %c \n", size, useGB ? 'Y' : 'N');
|
||||||
}
|
}
|
||||||
case 1: {
|
case 1: {
|
||||||
const char *p_pwd = luaL_checklstring(L, 1, &size);
|
const char *p_pwd = luaL_checklstring(L, 1, &size);
|
||||||
if ( size == 0 ) {
|
if (size == 0) {
|
||||||
usepwd = false;
|
usepwd = false;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
@ -818,7 +818,7 @@ static int l_T55xx_detect(lua_State *L) {
|
||||||
if (!useGB) {
|
if (!useGB) {
|
||||||
|
|
||||||
isok = AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, usepwd, password);
|
isok = AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, usepwd, password);
|
||||||
if ( isok == false ) {
|
if (isok == false) {
|
||||||
// signal error by returning Nil, errorstring
|
// signal error by returning Nil, errorstring
|
||||||
lua_pushnil(L);
|
lua_pushnil(L);
|
||||||
lua_pushstring(L, "Failed to aquire LF signal data");
|
lua_pushstring(L, "Failed to aquire LF signal data");
|
||||||
|
@ -827,7 +827,7 @@ static int l_T55xx_detect(lua_State *L) {
|
||||||
}
|
}
|
||||||
|
|
||||||
isok = tryDetectModulation();
|
isok = tryDetectModulation();
|
||||||
if ( isok == false ) {
|
if (isok == false) {
|
||||||
// signal error by returning Nil, errorstring
|
// signal error by returning Nil, errorstring
|
||||||
lua_pushnil(L);
|
lua_pushnil(L);
|
||||||
lua_pushstring(L, "Could not detect modulation automatically. Try setting it manually with \'lf t55xx config\'");
|
lua_pushstring(L, "Could not detect modulation automatically. Try setting it manually with \'lf t55xx config\'");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue