Fix define typo

This commit is contained in:
d18c7db 2009-11-12 08:04:40 +00:00
parent c0d04e9540
commit e70140224f

View file

@ -267,7 +267,7 @@ void SendVersion(void)
DbpString(temp);
}
#ifdef DWITH_LF
#ifdef WITH_LF
// samy's sniff and repeat routine
void SamyRun()
{
@ -534,13 +534,13 @@ void UsbPacketReceived(BYTE *packet, int len)
UsbCommand *c = (UsbCommand *)packet;
switch(c->cmd) {
#ifdef DWITH_LF
#ifdef WITH_LF
case CMD_ACQUIRE_RAW_ADC_SAMPLES_125K:
AcquireRawAdcSamples125k(c->ext1);
break;
#endif
#ifdef DWITH_LF
#ifdef WITH_LF
case CMD_MOD_THEN_ACQUIRE_RAW_ADC_SAMPLES_125K:
ModThenAcquireRawAdcSamples125k(c->ext1,c->ext2,c->ext3,c->d.asBytes);
break;
@ -630,13 +630,13 @@ void UsbPacketReceived(BYTE *packet, int len)
ListenReaderField(c->ext1);
break;
#ifdef DWITH_LF
#ifdef WITH_LF
case CMD_HID_DEMOD_FSK:
CmdHIDdemodFSK(0, 0, 0, 1); // Demodulate HID tag
break;
#endif
#ifdef DWITH_LF
#ifdef WITH_LF
case CMD_HID_SIM_TAG:
CmdHIDsimTAG(c->ext1, c->ext2, 1); // Simulate HID tag by ID
break;
@ -648,13 +648,13 @@ void UsbPacketReceived(BYTE *packet, int len)
LED_D_OFF(); // LED D indicates field ON or OFF
break;
#ifdef DWITH_LF
#ifdef WITH_LF
case CMD_READ_TI_TYPE:
ReadTItag();
break;
#endif
#ifdef DWITH_LF
#ifdef WITH_LF
case CMD_WRITE_TI_TYPE:
WriteTItag(c->ext1,c->ext2,c->ext3);
break;
@ -679,7 +679,7 @@ void UsbPacketReceived(BYTE *packet, int len)
break;
}
#ifdef DWITH_LF
#ifdef WITH_LF
case CMD_SIMULATE_TAG_125K:
LED_A_ON();
SimulateTagLowFrequency(c->ext1, 1);
@ -708,7 +708,7 @@ void UsbPacketReceived(BYTE *packet, int len)
SendVersion();
break;
#ifdef DWITH_LF
#ifdef WITH_LF
case CMD_LF_SIMULATE_BIDIR:
SimulateTagLowFrequencyBidir(c->ext1, c->ext2);
break;
@ -823,7 +823,7 @@ void __attribute__((noreturn)) AppMain(void)
UsbPoll(FALSE);
WDT_HIT();
#ifdef DWITH_LF
#ifdef WITH_LF
if (BUTTON_HELD(1000) > 0)
SamyRun();
#endif