mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-03-01 01:27:21 +00:00
Remove dead test code.
This commit is contained in:
parent
3e2b6087c2
commit
64da082306
@ -278,21 +278,4 @@ spi::reg_t RFFC507x::readback(const Readback readback) {
|
|||||||
return read(Register::READBACK);
|
return read(Register::READBACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* Test of RFFC507x reset over temperature */
|
|
||||||
while(true) {
|
|
||||||
first_if.write(rffc507x::Register::P1_FREQ2, 0xAAAA);
|
|
||||||
first_if.reset();
|
|
||||||
const auto after_reset = first_if.read(rffc507x::Register::P1_FREQ2);
|
|
||||||
if( after_reset != 0x6276 ) {
|
|
||||||
led_usb.off();
|
|
||||||
led_tx.on();
|
|
||||||
chThdSleepMilliseconds(100);
|
|
||||||
} else {
|
|
||||||
led_usb.on();
|
|
||||||
led_tx.off();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
} /* namespace rffc507x */
|
} /* namespace rffc507x */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user