1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 23:41:18 +01:00

transceiver: fix check for existence

The transceiver check if it is already running when initializing.
However, this check was done by comparing its pid for >= 0, which is not
sensible anymore since valid PIDs only start at 1.
This commit is contained in:
Oleg Hahm 2014-08-22 18:34:42 +02:00
parent addfaefe8a
commit 73965f984e

View File

@ -154,7 +154,7 @@ void transceiver_init(transceiver_type_t t)
{
uint8_t i;
if (transceiver_pid >= 0) {
if (transceiver_pid != KERNEL_PID_UNDEF) {
/* do not re-initialize an already running transceiver */
return;
}