mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-01 11:06:30 -04:00
Remove thread pointer checking.
This commit is contained in:
parent
f8a473d56b
commit
9188bb9ee9
2 changed files with 6 additions and 10 deletions
|
@ -58,12 +58,10 @@ BasebandThread::BasebandThread(const tprio_t priority) {
|
||||||
}
|
}
|
||||||
|
|
||||||
BasebandThread::~BasebandThread() {
|
BasebandThread::~BasebandThread() {
|
||||||
if( thread ) {
|
|
||||||
chThdTerminate(thread);
|
chThdTerminate(thread);
|
||||||
chThdWait(thread);
|
chThdWait(thread);
|
||||||
thread = nullptr;
|
thread = nullptr;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void BasebandThread::set_configuration(const BasebandConfiguration& new_configuration) {
|
void BasebandThread::set_configuration(const BasebandConfiguration& new_configuration) {
|
||||||
if( new_configuration.mode != baseband_configuration.mode ) {
|
if( new_configuration.mode != baseband_configuration.mode ) {
|
||||||
|
|
|
@ -40,12 +40,10 @@ RSSIThread::RSSIThread(const tprio_t priority) {
|
||||||
}
|
}
|
||||||
|
|
||||||
RSSIThread::~RSSIThread() {
|
RSSIThread::~RSSIThread() {
|
||||||
if( thread ) {
|
|
||||||
chThdTerminate(thread);
|
chThdTerminate(thread);
|
||||||
chThdWait(thread);
|
chThdWait(thread);
|
||||||
thread = nullptr;
|
thread = nullptr;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void RSSIThread::run() {
|
void RSSIThread::run() {
|
||||||
rf::rssi::init();
|
rf::rssi::init();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue