packages/libs/sx1302_hal/test.sh
Marcus Schref e1ccb783ab sx1302_hal: initial check-in
The SX1302 hardware abstraction layer is required by the basicstation
to control the concentrator based on SX1302/SX1303 chip.

Signed-off-by: Marcus Schref <mschref@web.de>
2022-11-08 15:22:05 +08:00

8 lines
160 B
Bash

#!/bin/sh
if [ "$1" = 'sx1302_hal-tests' ]; then
test_loragw_com -h 2>&1 | grep "$2"
elif [ "$1" = 'sx1302_hal-utils' ]; then
chip_id -h 2>&1 | grep "$2"
fi