FIX: minor fix to the magictest function. It always makes a select tag first, but never took in consideration that the tag already could have been selected.

This commit is contained in:
iceman1001 2015-05-31 21:49:00 +02:00
parent 2d2f7d1948
commit e86a89044a

View file

@ -522,6 +522,7 @@ static int ul_magic_test(){
// Magic Ultralight tests
// 1) take present UID, and try to write it back. OBSOLETE
// 2) make a wrong length write to page0, and see if tag answers with ACK/NACK:
ul_switch_off_field();
iso14a_card_select_t card;
if ( !ul_select(&card) )
return UL_ERROR;