]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - common/protocols.c
ADD: adding a presco demod, given 0x10D as preamble, .. *work in progress*
[proxmark3-svn] / common / protocols.c
index ee8abaddcf65fbebcc559a65542411d08b522f28..b8361204943b30d9f15e9964a6d456b5ac05b2b1 100644 (file)
@@ -1,4 +1,3 @@
-#include <strings.h>
 #include <string.h>
 #include <stdint.h>
 #include <stdarg.h>
@@ -7,24 +6,15 @@
 // ATA55xx shared presets & routines
 uint32_t GetT55xxClockBit(uint32_t clock) {
        switch (clock) {
-               case 128:
-                       return T55x7_BITRATE_RF_128;
-               case 100:
-                       return T55x7_BITRATE_RF_100;
-               case 64:
-                       return T55x7_BITRATE_RF_64;
-               case 50:
-                       return T55x7_BITRATE_RF_50;
-               case 40:
-                       return T55x7_BITRATE_RF_40;
-               case 32:
-                       return T55x7_BITRATE_RF_32;
-               case 16:
-                       return T55x7_BITRATE_RF_16;
-               case 8:
-                       return T55x7_BITRATE_RF_8;
-               default:
-                       return 0;
+               case 128: return T55x7_BITRATE_RF_128;
+               case 100: return T55x7_BITRATE_RF_100;
+               case  64: return T55x7_BITRATE_RF_64;
+               case  50: return T55x7_BITRATE_RF_50;
+               case  40: return T55x7_BITRATE_RF_40;
+               case  32: return T55x7_BITRATE_RF_32;
+               case  16: return T55x7_BITRATE_RF_16;
+               case   8: return T55x7_BITRATE_RF_8;
+               default : return 0;
        }
 }
 
Impressum, Datenschutz