mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Bug 880162 - Do not callback FM_RADIO_OPERATION_ENABLE when disabling FM radio. r=jlebar
This commit is contained in:
parent
06a22765c7
commit
db9132735d
@ -223,8 +223,12 @@ runTavaruaRadio(void *)
|
||||
for (unsigned int i = 0; i < buffer.bytesused; i++) {
|
||||
switch (buf[i]) {
|
||||
case TAVARUA_EVT_RADIO_READY:
|
||||
NS_DispatchToMainThread(new RadioUpdate(hal::FM_RADIO_OPERATION_ENABLE,
|
||||
hal::FM_RADIO_OPERATION_STATUS_SUCCESS));
|
||||
// The driver sends RADIO_READY both when we turn the radio on and when we turn
|
||||
// the radio off.
|
||||
if (sRadioEnabled) {
|
||||
NS_DispatchToMainThread(new RadioUpdate(hal::FM_RADIO_OPERATION_ENABLE,
|
||||
hal::FM_RADIO_OPERATION_STATUS_SUCCESS));
|
||||
}
|
||||
break;
|
||||
case TAVARUA_EVT_SEEK_COMPLETE:
|
||||
NS_DispatchToMainThread(new RadioUpdate(hal::FM_RADIO_OPERATION_SEEK,
|
||||
|
Loading…
x
Reference in New Issue
Block a user