mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-01-24 12:41:05 +02:00
tools/atrf-txrx/atrf-txrx.c (enter_test_mode_231): clean up and exit on error
This commit is contained in:
parent
8d487739b7
commit
110d5abe32
@ -230,7 +230,8 @@ static void enter_test_mode_231(struct atrf_dsc *dsc, uint8_t cont_tx)
|
|||||||
case CONT_TX_M2M:
|
case CONT_TX_M2M:
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"-2 MHz mode is not supported by the AT86RF231\n");
|
"-2 MHz mode is not supported by the AT86RF231\n");
|
||||||
break;
|
atrf_close(dsc);
|
||||||
|
exit(1);
|
||||||
case CONT_TX_M500K:
|
case CONT_TX_M500K:
|
||||||
memset(buf, 0, sizeof(buf));
|
memset(buf, 0, sizeof(buf));
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user