Changeset 370 for ISPProgrammer/ISPprog/UISPprog.pas
- Timestamp:
- May 31, 2012, 6:29:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ISPProgrammer/ISPprog/UISPprog.pas
r363 r370 26 26 public 27 27 constructor Create; override; 28 procedure Write ; override;29 procedure Read ; override;30 procedure Verify ; override;28 procedure Write(Job: TJob); override; 29 procedure Read(Job: TJob); override; 30 procedure Verify(Job: TJob); override; 31 31 procedure Erase; override; 32 32 procedure Reset; override; … … 149 149 { TISPProg } 150 150 151 procedure TISPProg.Write ;151 procedure TISPProg.Write(Job: TJob); 152 152 var 153 153 res: string; … … 212 212 maxadr:=maxadr or pagemask; // round up to page size 213 213 radr:=minadr; 214 Job ProgressView.CurrentJob.Progress.Max := maxadr - minadr + 1;214 Job.Progress.Max := maxadr - minadr + 1; 215 215 while radr <= maxadr do begin 216 216 if (proctype = PROC_TYPE_AVR) and (flashsize > 1024*128) then … … 233 233 end; 234 234 radr := radr + pagesize; 235 Job ProgressView.CurrentJob.Progress.Value := radr - minadr;236 if Job ProgressView.CurrentJob.Terminate then Break;235 Job.Progress.Value := radr - minadr; 236 if Job.Terminate then Break; 237 237 end; 238 238 Log(SProgramOK); … … 263 263 end; 264 264 radr := radr + pagesize; 265 Job ProgressView.CurrentJob.Progress.Value := radr - minadr;265 Job.Progress.Value := radr - minadr; 266 266 end; 267 267 Log(SProgramOK); … … 284 284 end; 285 285 end; 286 Job ProgressView.CurrentJob.Progress.Value := radr - minadr;286 Job.Progress.Value := radr - minadr; 287 287 end; 288 288 LedOff; … … 295 295 end; 296 296 297 procedure TISPProg.Verify ;297 procedure TISPProg.Verify(Job: TJob); 298 298 begin 299 299 inherited;
Note:
See TracChangeset
for help on using the changeset viewer.