|
@@ -137,7 +137,7 @@ static bool xremote_cross_remote_item_read_ir(CrossRemoteItem* item, FlipperForm
|
|
|
|
|
|
|
|
do {
|
|
do {
|
|
|
if(!flipper_format_read_string(ff, "name", item->name)) break;
|
|
if(!flipper_format_read_string(ff, "name", item->name)) break;
|
|
|
- if(!flipper_format_read_int32(ff, "time", &item->time, 1)) item->time = 1000;
|
|
|
|
|
|
|
+ if(!flipper_format_read_uint32(ff, "time", &item->time, 1)) item->time = 1000;
|
|
|
if(!flipper_format_read_string(ff, "type", buf)) break;
|
|
if(!flipper_format_read_string(ff, "type", buf)) break;
|
|
|
if(furi_string_equal(buf, "raw")) {
|
|
if(furi_string_equal(buf, "raw")) {
|
|
|
if(!xremote_cross_remote_item_read_ir_signal_raw(item, ff)) break;
|
|
if(!xremote_cross_remote_item_read_ir_signal_raw(item, ff)) break;
|
|
@@ -159,7 +159,7 @@ static bool xremote_cross_remote_item_read_pause(CrossRemoteItem* item, FlipperF
|
|
|
|
|
|
|
|
do {
|
|
do {
|
|
|
if(!flipper_format_read_string(ff, "name", item->name)) break;
|
|
if(!flipper_format_read_string(ff, "name", item->name)) break;
|
|
|
- if(!flipper_format_read_int32(ff, "time", &item->time, 1)) break;
|
|
|
|
|
|
|
+ if(!flipper_format_read_uint32(ff, "time", &item->time, 1)) break;
|
|
|
success = true;
|
|
success = true;
|
|
|
} while(false);
|
|
} while(false);
|
|
|
|
|
|
|
@@ -202,7 +202,7 @@ void xremote_cross_remote_item_set_name(CrossRemoteItem* item, const char* name)
|
|
|
furi_string_set(item->name, name);
|
|
furi_string_set(item->name, name);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-void xremote_cross_remote_item_set_time(CrossRemoteItem* item, int32_t time) {
|
|
|
|
|
|
|
+void xremote_cross_remote_item_set_time(CrossRemoteItem* item, uint32_t time) {
|
|
|
item->time = time;
|
|
item->time = time;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -230,11 +230,11 @@ uint32_t xremote_cross_remote_item_get_time(CrossRemoteItem* item) {
|
|
|
return item->time;
|
|
return item->time;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-bool xremote_cross_remote_item_ir_signal_save(InfraredSignal* signal, FlipperFormat* ff, const char* name, int32_t time) {
|
|
|
|
|
|
|
+bool xremote_cross_remote_item_ir_signal_save(InfraredSignal* signal, FlipperFormat* ff, const char* name, uint32_t time) {
|
|
|
if(!flipper_format_write_comment_cstr(ff, "") ||
|
|
if(!flipper_format_write_comment_cstr(ff, "") ||
|
|
|
!flipper_format_write_string_cstr(ff, "remote_type", "IR") ||
|
|
!flipper_format_write_string_cstr(ff, "remote_type", "IR") ||
|
|
|
!flipper_format_write_string_cstr(ff, "name", name) ||
|
|
!flipper_format_write_string_cstr(ff, "name", name) ||
|
|
|
- !flipper_format_write_int32(ff, "time", &time, 1)) {
|
|
|
|
|
|
|
+ !flipper_format_write_uint32(ff, "time", &time, 1)) {
|
|
|
return false;
|
|
return false;
|
|
|
} else if(signal->is_raw) {
|
|
} else if(signal->is_raw) {
|
|
|
return xremote_ir_signal_save_raw(&signal->payload.raw, ff);
|
|
return xremote_ir_signal_save_raw(&signal->payload.raw, ff);
|
|
@@ -243,11 +243,11 @@ bool xremote_cross_remote_item_ir_signal_save(InfraredSignal* signal, FlipperFor
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-bool xremote_cross_remote_item_pause_save(FlipperFormat* ff, int32_t time, const char* name) {
|
|
|
|
|
|
|
+bool xremote_cross_remote_item_pause_save(FlipperFormat* ff, uint32_t time, const char* name) {
|
|
|
if(!flipper_format_write_comment_cstr(ff, "") ||
|
|
if(!flipper_format_write_comment_cstr(ff, "") ||
|
|
|
!flipper_format_write_string_cstr(ff, "remote_type", "PAUSE") ||
|
|
!flipper_format_write_string_cstr(ff, "remote_type", "PAUSE") ||
|
|
|
!flipper_format_write_string_cstr(ff, "name", name) ||
|
|
!flipper_format_write_string_cstr(ff, "name", name) ||
|
|
|
- !flipper_format_write_int32(ff, "time", &time, 1)) {
|
|
|
|
|
|
|
+ !flipper_format_write_uint32(ff, "time", &time, 1)) {
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
return true;
|
|
return true;
|