X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=src%2Frfid_proto_tcl.c;h=cfde04b29f688c6b8a8ff42d2c961b7f7ec716f6;hb=67b493772992729b219d912469f6334f91be0e56;hp=af626c666e480eceb3fa17be4113ad73e66d1400;hpb=34c1b5ea856324e7ff3e8c8198ea06583426d0a9;p=librfid diff --git a/src/rfid_proto_tcl.c b/src/rfid_proto_tcl.c index af626c6..cfde04b 100644 --- a/src/rfid_proto_tcl.c +++ b/src/rfid_proto_tcl.c @@ -16,7 +16,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ #include @@ -164,6 +164,8 @@ tcl_parse_ats(struct rfid_protocol_handle *h, h->priv.tcl.historical_len = (ats+len) - cur; h->priv.tcl.historical_bytes = cur; + + DEBUGP("ATS parsed: %s\n", rfid_hexdump(ats, size)); return 0; } @@ -781,6 +783,8 @@ tcl_getopt(struct rfid_protocol_handle *h, int optname, void *optval, *optlen = sizeof(u_int8_t); *opt_str = h->priv.tcl.ats_len & 0xff; break; + default: + return -EINVAL; } return 0;