mirror of
https://github.com/marqs85/ossc
synced 2025-04-09 22:56:34 +03:00
fix SD profile import and use default 480p preset for TP
This commit is contained in:
parent
c5f7483410
commit
de1b441167
@ -322,7 +322,7 @@ int import_userdata()
|
||||
|
||||
// Just blindly write the entry to flash
|
||||
retval = copy_sd_to_flash((512+n*SECTORSIZE)/SD_BLK_SIZE, (n*PAGES_PER_SECTOR)+(USERDATA_OFFSET/PAGESIZE),
|
||||
(header.type == UDE_PROFILE) ? sizeof(ude_profile) : sizeof(ude_initcfg), databuf);
|
||||
(header.type == UDE_PROFILE) ? (sizeof(ude_profile)+sizeof(video_modes_plm_default)) : sizeof(ude_initcfg), databuf);
|
||||
if (retval != 0) {
|
||||
printf("Copy from SD to flash failed (error %d)\n", retval);
|
||||
goto sd_disable;
|
||||
|
@ -483,7 +483,7 @@ int get_vmode(vmode_t vmode_id, mode_data_t *vm_in, mode_data_t *vm_out, vm_proc
|
||||
{
|
||||
memset(vm_conf, 0, sizeof(vm_proc_config_t));
|
||||
memset(vm_in, 0, sizeof(mode_data_t));
|
||||
memcpy(vm_out, &video_modes_plm[vmode_id], sizeof(mode_data_t));
|
||||
memcpy(vm_out, &video_modes_plm_default[vmode_id], sizeof(mode_data_t));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user