rename global session

This commit is contained in:
Philippe Teuwen committed 2021-08-21 20:31:05 +02:00
1 parent 6a2f2b3979
commit dd3b63ae32
20 files changed
+258 -258

No files matched your search

+2 -2
View File
@@ -1390,7 +1390,7 @@ int CmdEM4x05Chk(const char *Cmd) {
for (uint32_t c = 0; c < keycount; ++c) {
if (!session.pm3_present) {
if (!g_session.pm3_present) {
PrintAndLogEx(WARNING, "device offline\n");
free(keyBlock);
return PM3_ENODATA;
@@ -1569,7 +1569,7 @@ int CmdEM4x05Unlock(const char *Cmd) {
return PM3_EINVARG;
}
if (session.pm3_present == false) {
if (g_session.pm3_present == false) {
PrintAndLogEx(WARNING, "device offline\n");
return PM3_ENODATA;
}