Skip to content

Commit 4187264

Browse files
committed
Fixing Modem scripts after testing
1 parent 684568a commit 4187264

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

recipes-connectivity/modemmanager/modemmanager/modem_off.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ else
1010
exit 1
1111
fi
1212

13-
if [ "$IS_ON_CARRIER"=="yes" ]; then
14-
if [ "$CARRIER_NAME"=="max" ]; then
13+
if [ "$IS_ON_CARRIER" = "yes" ]; then
14+
if [ "$CARRIER_NAME" = "max" ]; then
1515
echo "Power on SARA-R4 usb modem on $CARRIER_NAME"
1616
gpioset gpiochip5 4=0 # PWR_ON=High
1717
gpioset gpiochip5 2=1 # RST=Low
1818

1919
echo "Power off pcie usb modem on $CARRIER_NAME"
2020
gpioset gpiochip5 29=0 # PCIE 3V3 BUCK EN (stm32h7 PWM6)
21-
elif [ "$CARRIER_NAME"=="mid" ]; then
21+
elif [ "$CARRIER_NAME" = "mid" ]; then
2222
echo "Power off pcie usb modem on $CARRIER_NAME"
2323
gpioset gpiochip5 5=0 # # PCIE 3V3 BUCK EN (stm32h7 PE10)
2424
fi

recipes-connectivity/modemmanager/modemmanager/modem_on.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ else
99
exit 1
1010
fi
1111

12-
if [ "$IS_ON_CARRIER"=="yes" ]; then
12+
if [ "$IS_ON_CARRIER" = "yes" ]; then
1313
# @TODO: we expect to fail if pin owned by kernel (pcie_mini ov)
1414
# would be more elegant a u-boot env variable to configure usb modems
15-
if [ "$CARRIER_NAME"=="max" ]; then
15+
if [ "$CARRIER_NAME" = "max" ]; then
1616
echo "Power on SARA-R4 usb modem on $CARRIER_NAME"
1717
# Note: we're driving open-drain n-mos
1818
# pull-ups are provided internally by modem
@@ -25,7 +25,7 @@ if [ "$IS_ON_CARRIER"=="yes" ]; then
2525
echo "Power on pcie usb modem on $CARRIER_NAME"
2626
gpioset gpiochip5 29=1 # PCIE 3V3 BUCK EN (stm32h7 PWM6)
2727
sleep 1
28-
elif [ "$CARRIER_NAME"=="mid" ]; then
28+
elif [ "$CARRIER_NAME" = "mid" ]; then
2929
echo "Power on pcie usb modem on $CARRIER_NAME"
3030
gpioset gpiochip5 5=1 # # PCIE 3V3 BUCK EN (stm32h7 PE10)
3131
sleep 1

0 commit comments

Comments
 (0)