Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mmsd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chris T
mmsd
Commits
0b296676
Commit
0b296676
authored
Jan 23, 2021
by
Chris T
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up Suspend code.
parent
c1e0cb96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
plugins/modemmanager.c
plugins/modemmanager.c
+12
-10
No files found.
plugins/modemmanager.c
View file @
0b296676
...
...
@@ -525,6 +525,7 @@ pur_mm_get_modem_state (void)
mms_error
(
"ModemManagerPlugin(): MM_MODEM_STATE_DISABLED"
);
mms_error
(
"ModemManagerPlugin(): Turning on Modem...."
);
mm_modem_set_power_state_sync
(
modem
->
modem
,
MM_MODEM_POWER_STATE_ON
,
NULL
,
&
error
);
pur_mm_state
(
PUR_MM_STATE_MODEM_DISABLED
);
return
FALSE
;
default:
break
;
...
...
@@ -536,17 +537,18 @@ pur_mm_get_modem_state (void)
return
TRUE
;
}
static
void
state_changed_cb
(
MMModem
*
cb_modem
,
MMModemState
old
,
MMModemState
new
,
MMModemStateChangeReason
reason
)
static
void
state_changed_cb
(
MMModem
*
cb_modem
,
MMModemState
old
,
MMModemState
new
,
MMModemStateChangeReason
reason
)
{
mms_error
(
"ModemManagerPlugin(): State Change: Old
: %d New
: %d, Reason: %d"
,
old
,
new
,
reason
);
if
(
new
>=
MM_MODEM_STATE_
CONNECTING
)
{
mms_error
(
"ModemManagerPlugin(): Modem is ready"
);
g_signal_handler_disconnect
(
modem
->
gdbus_modem
,
modem
->
modem_state_watch_id
);
pur_mm_state
(
PUR_MM_STATE_MODEM_FOUND
);
mms_error
(
"ModemManagerPlugin(): State Change: Old
State: %d New State
: %d, Reason: %d"
,
old
,
new
,
reason
);
if
(
new
>=
MM_MODEM_STATE_
ENABLED
)
{
mms_error
(
"ModemManagerPlugin(): Modem is ready"
);
g_signal_handler_disconnect
(
modem
->
gdbus_modem
,
modem
->
modem_state_watch_id
);
pur_mm_state
(
PUR_MM_STATE_MODEM_FOUND
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment