]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/blobdiff - mt_rfid.c
Add simulator mode (for debugging without terminal)
[coffee/mt-apps.git] / mt_rfid.c
index e987f827c79be7f2d17acf0934550ca70be96c0c..76a94c52d8f162431fd29238dbd6e90ec52d185d 100644 (file)
--- a/mt_rfid.c
+++ b/mt_rfid.c
@@ -85,28 +85,6 @@ static int tty_open(const char *port, int br)
     return fd;
 }
 
-// print complete json
-void rfid_json_print(int fd,
-                    uint8_t card_type,
-                    uint8_t sak,           //select acknowledge
-                    char *uid,
-                    uint8_t size)
-{
-    static const char *type = "rfid";
-
-    JSON_START();
-    JSON_STR(type);
-    JSON_NEXT();
-    JSON_NUM(card_type);
-    JSON_NEXT();
-    JSON_NUM(sak);
-    JSON_NEXT();
-    JSON_NUM(size);
-    JSON_NEXT();
-    JSON_STR(uid);
-    JSON_END();
-}
-
 static void ufr_read(char *uid, int fd)
 {
     UFR_STATUS status;