mirror of
				https://github.com/DigitalDevices/dddvb.git
				synced 2025-03-01 10:35:23 +00:00 
			
		
		
		
	select image start according to reg 0x10
This commit is contained in:
		| @@ -109,20 +109,14 @@ static int update_flash(struct ddflash *ddf) | ||||
| 			stat |= 1; | ||||
| 		return stat; | ||||
| 		break; | ||||
| 	case 0x21: | ||||
| 	case 0x22: | ||||
| 	case 0x24: | ||||
| 	case 0x14: | ||||
| 		imgadr = 0; | ||||
| 	default: | ||||
| 	{ | ||||
| 		uint32_t val; | ||||
| 		if (!readreg(ddf->fd, (ddf->link << 28) | 0x10, &val)) { | ||||
| 			printf("reg0x10=%08x\n", val); | ||||
| 			//printf("reg0x10=%08x\n", val); | ||||
| 			if ((val >> 24) == 5) | ||||
| 				imgadr = 0; | ||||
| 		} | ||||
| 		printf("imgadr= %08x\n", imgadr); | ||||
| 	} | ||||
| 		fname = ddf->fname; | ||||
| 		default_fname = devid2fname(ddf->id.device, &name); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 internal
					internal