mirror of
https://github.com/marqs85/ossc
synced 2025-04-18 19:12:40 +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
|
// 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),
|
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) {
|
if (retval != 0) {
|
||||||
printf("Copy from SD to flash failed (error %d)\n", retval);
|
printf("Copy from SD to flash failed (error %d)\n", retval);
|
||||||
goto sd_disable;
|
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_conf, 0, sizeof(vm_proc_config_t));
|
||||||
memset(vm_in, 0, sizeof(mode_data_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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user