mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-20 09:44:25 +00:00
Remove thread pointer checking.
This commit is contained in:
@@ -58,12 +58,10 @@ BasebandThread::BasebandThread(const tprio_t priority) {
|
||||
}
|
||||
|
||||
BasebandThread::~BasebandThread() {
|
||||
if( thread ) {
|
||||
chThdTerminate(thread);
|
||||
chThdWait(thread);
|
||||
thread = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void BasebandThread::set_configuration(const BasebandConfiguration& new_configuration) {
|
||||
if( new_configuration.mode != baseband_configuration.mode ) {
|
||||
|
@@ -40,12 +40,10 @@ RSSIThread::RSSIThread(const tprio_t priority) {
|
||||
}
|
||||
|
||||
RSSIThread::~RSSIThread() {
|
||||
if( thread ) {
|
||||
chThdTerminate(thread);
|
||||
chThdWait(thread);
|
||||
thread = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
void RSSIThread::run() {
|
||||
rf::rssi::init();
|
||||
|
Reference in New Issue
Block a user