mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-24 13:52:38 +03:00
d92b0a82cc
"A long time ago in a galaxy far, far away...." we started NFC subsystem refactoring. Starring: - @gornekich - NFC refactoring project lead, architect, senior developer - @gsurkov - architect, senior developer - @RebornedBrain - senior developer Supporting roles: - @skotopes, @DrZlo13, @hedger - general architecture advisors, code review - @Astrrra, @doomwastaken, @Hellitron, @ImagineVagon333 - quality assurance Special thanks: @bettse, @pcunning, @nxv, @noproto, @AloneLiberty and everyone else who has been helping us all this time and contributing valuable knowledges, ideas and source code.
19 lines
556 B
C
19 lines
556 B
C
#include "iso14443_4b_i.h"
|
|
|
|
Iso14443_4bError iso14443_4b_process_error(Iso14443_3bError error) {
|
|
switch(error) {
|
|
case Iso14443_3bErrorNone:
|
|
return Iso14443_4bErrorNone;
|
|
case Iso14443_3bErrorNotPresent:
|
|
return Iso14443_4bErrorNotPresent;
|
|
case Iso14443_3bErrorColResFailed:
|
|
case Iso14443_3bErrorCommunication:
|
|
case Iso14443_3bErrorWrongCrc:
|
|
return Iso14443_4bErrorProtocol;
|
|
case Iso14443_3bErrorTimeout:
|
|
return Iso14443_4bErrorTimeout;
|
|
default:
|
|
return Iso14443_4bErrorProtocol;
|
|
}
|
|
}
|