From 14e5c52f78e7ad23b18b111e3271cbecad6acf3f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 8 Sep 2009 17:31:54 -0700 Subject: core: don't allow concurrent flashes on the same device Previously, a few operations (like disable) could trigger a modem flash in parallel with another flash. That's wrong, don't allow that. At the same time, add in finer-grained error checking on serial port speed operations, and fix a GSM generic bug that would send the POWER_UP string on disable. --- src/mm-errors.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mm-errors.h') diff --git a/src/mm-errors.h b/src/mm-errors.h index 2e452872..bc43d3e9 100644 --- a/src/mm-errors.h +++ b/src/mm-errors.h @@ -35,7 +35,9 @@ GType mm_serial_error_get_type (void); enum { MM_MODEM_ERROR_GENERAL = 0, MM_MODEM_ERROR_OPERATION_NOT_SUPPORTED = 1, - MM_MODEM_ERROR_CONNECTED = 2 + MM_MODEM_ERROR_CONNECTED = 2, + MM_MODEM_ERROR_DISCONNECTED = 3, + MM_MODEM_ERROR_OPERATION_IN_PROGRESS = 4 }; #define MM_MODEM_ERROR (mm_modem_error_quark ()) -- cgit v1.2.3-70-g09d2