- if ( cmd[1] == LEGIC_HSK_22 )
- snprintf(exp, size, "MIM22");
- if ( cmd[1] == LEGIC_HSK_256 )
- snprintf(exp, size, "MIN256/1024");
+ switch ( cmd[1] ) {
+ case LEGIC_MIM_22: snprintf(exp, size, "MIM22"); break;
+ case LEGIC_MIM_256: snprintf(exp, size, "MIM256"); break;
+ case LEGIC_MIM_1024: snprintf(exp, size, "MIM1024"); break;
+ case LEGIC_ACK_22: snprintf(exp, size, "ACK 22"); break;
+ case LEGIC_ACK_256: snprintf(exp, size, "ACK 256/1024"); break;
+ }