qmod: invert WWAN_PERST logic (we use transistors now)

This commit is contained in:
Harald Welte committed 2017-02-10 19:19:52 +01:00
1 parent 6732248f71
commit 4a9bce127f
1 file changed
+2 -2
+2 -2
View File
@@ -26,7 +26,7 @@ static void perst_tmr_cb(void *data)
{ {
const Pin *pin = data; const Pin *pin = data;
/* release the (low-active) reset */ /* release the (low-active) reset */
PIO_Set(pin); PIO_Clear(pin);
} }
int wwan_perst_do_reset(int modem_nr) int wwan_perst_do_reset(int modem_nr)
@@ -50,7 +50,7 @@ int wwan_perst_do_reset(int modem_nr)
default: default:
return -1; return -1;
} }
PIO_Clear(pin); PIO_Set(pin);
osmo_timer_schedule(tmr, PERST_DURATION_MS/1000, (PERST_DURATION_MS%1000)*1000); osmo_timer_schedule(tmr, PERST_DURATION_MS/1000, (PERST_DURATION_MS%1000)*1000);
return 0; return 0;