|
|
@@ -89,10 +89,11 @@ const char* xremote_cross_remote_get_name(CrossRemote* remote) {
|
|
|
return furi_string_get_cstr(remote->name);
|
|
|
}
|
|
|
|
|
|
-bool xremote_cross_remote_add_ir_item(CrossRemote* remote, const char* name, InfraredSignal* signal) {
|
|
|
+bool xremote_cross_remote_add_ir_item(CrossRemote* remote, const char* name, InfraredSignal* signal, uint32_t timing) {
|
|
|
CrossRemoteItem* item = xremote_cross_remote_item_alloc();
|
|
|
xremote_cross_remote_item_set_type(item, XRemoteRemoteItemTypeInfrared);
|
|
|
xremote_cross_remote_item_set_name(item, name);
|
|
|
+ xremote_cross_remote_item_set_time(item, timing);
|
|
|
xremote_cross_remote_item_set_ir_signal(item, signal);
|
|
|
CrossRemoteItemArray_push_back(remote->items, item);
|
|
|
return true;
|
|
|
@@ -208,7 +209,8 @@ static bool xremote_cross_remote_store(CrossRemote* remote) {
|
|
|
success = xremote_cross_remote_item_ir_signal_save(
|
|
|
xremote_cross_remote_item_get_ir_signal(item),
|
|
|
ff,
|
|
|
- xremote_cross_remote_item_get_name(item));
|
|
|
+ xremote_cross_remote_item_get_name(item),
|
|
|
+ xremote_cross_remote_item_get_time(item));
|
|
|
} else if(item->type == XRemoteRemoteItemTypePause) {
|
|
|
success = xremote_cross_remote_item_pause_save(ff, item->time, xremote_cross_remote_item_get_name(item));
|
|
|
} else if(item->type == XRemoteRemoteItemTypeSubGhz) {
|