mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 14:59:24 -05:00
Remove thread pointer checking.
This commit is contained in:
parent
f8a473d56b
commit
9188bb9ee9
@ -58,11 +58,9 @@ BasebandThread::BasebandThread(const tprio_t priority) {
|
||||
}
|
||||
|
||||
BasebandThread::~BasebandThread() {
|
||||
if( thread ) {
|
||||
chThdTerminate(thread);
|
||||
chThdWait(thread);
|
||||
thread = nullptr;
|
||||
}
|
||||
chThdTerminate(thread);
|
||||
chThdWait(thread);
|
||||
thread = nullptr;
|
||||
}
|
||||
|
||||
void BasebandThread::set_configuration(const BasebandConfiguration& new_configuration) {
|
||||
|
@ -40,11 +40,9 @@ RSSIThread::RSSIThread(const tprio_t priority) {
|
||||
}
|
||||
|
||||
RSSIThread::~RSSIThread() {
|
||||
if( thread ) {
|
||||
chThdTerminate(thread);
|
||||
chThdWait(thread);
|
||||
thread = nullptr;
|
||||
}
|
||||
chThdTerminate(thread);
|
||||
chThdWait(thread);
|
||||
thread = nullptr;
|
||||
}
|
||||
|
||||
void RSSIThread::run() {
|
||||
|
Loading…
Reference in New Issue
Block a user