mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-28 08:49:45 -05: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);
|
||||
}
|
||||
|
||||
#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 */
|
||||
|
Loading…
Reference in New Issue
Block a user