[FL-1489] IRDA: move to FileWorker (#594)
* [FL-1489] IRDA: move to FileWorker, fixes * Use FileWorker * Use file_select to select remotes * Fix some crashes * Add RAW parsing restrictions * Remove excess scene (LearnDoneAfter) * Move all file system logic to standalone object
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "furi.h"
|
||||
#include "gui/modules/button_panel.h"
|
||||
#include "irda-app.hpp"
|
||||
#include "irda/irda-app-event.hpp"
|
||||
#include <callback-connector.h>
|
||||
|
||||
IrdaAppViewManager::IrdaAppViewManager() {
|
||||
@@ -98,6 +99,12 @@ osMessageQueueId_t IrdaAppViewManager::get_event_queue() {
|
||||
return event_queue;
|
||||
}
|
||||
|
||||
void IrdaAppViewManager::clear_events() {
|
||||
IrdaAppEvent event;
|
||||
while(osMessageQueueGet(event_queue, &event, NULL, 0) == osOK)
|
||||
;
|
||||
}
|
||||
|
||||
void IrdaAppViewManager::receive_event(IrdaAppEvent* event) {
|
||||
if(osMessageQueueGet(event_queue, event, NULL, 100) != osOK) {
|
||||
event->type = IrdaAppEvent::Type::Tick;
|
||||
|
||||
Reference in New Issue
Block a user