Daniel Golle d7354297bb uqmi: fix acquiring PIN status
Evaluating the return value of 'json_load' didn't work in the
intended way resulting in PIN status no longer being read on modems
where --get-pin-status doesn't fail.
Fix this by trying --get-pin-status first and checking if pin1_status
field exists in JSON, and if it doesn't try again with
--uim-get-sim-state.

Fixes: #9501
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit ee7cb5e885118b78fb5f692d8ed6c93bb7e35853)
2022-03-27 16:14:00 +01:00
..
2022-02-01 21:25:02 +01:00
2022-03-19 16:13:58 +01:00
2022-03-19 16:13:58 +01:00
2022-02-12 23:22:05 +01:00
2022-03-27 16:14:00 +01:00
2019-04-06 19:14:06 +02:00
2020-05-13 19:01:23 +02:00