Prevent deep sleep on the Openmoko

This commit is contained in:
Pierre Pronchery 2010-06-12 21:07:42 +00:00
parent 308e31596d
commit fad8aa3c2a

View File

@ -13,8 +13,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. */ * along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* TODO: /* TODO:
* - implement notification light * - implement notification lights */
* - prevent deep sleep */
@ -110,12 +109,12 @@ static int _openmoko_event(PhonePlugin * plugin, PhoneEvent event, ...)
case PHONE_EVENT_VIBRATOR_ON: case PHONE_EVENT_VIBRATOR_ON:
_event_vibrator(plugin, TRUE); _event_vibrator(plugin, TRUE);
break; break;
/* not relevant */ case PHONE_EVENT_SIM_VALID:
case PHONE_EVENT_SIM_VALID: /* FIXME prevent deep sleep? */ /* prevent deep sleep */
case PHONE_EVENT_SMS_RECEIVED: plugin->helper->queue(plugin->helper->phone,
case PHONE_EVENT_SMS_RECEIVING: "AT%SLEEP=2");
case PHONE_EVENT_SMS_SENDING: break;
case PHONE_EVENT_SMS_SENT: default: /* not relevant */
break; break;
} }
return 0; return 0;