Changeset 370 for ISPProgrammer/Dallas
- Timestamp:
- May 31, 2012, 6:29:12 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ISPProgrammer/Dallas/UDallasProgrammer.pas
r363 r370 44 44 procedure LoadFromRegistry(Root: HKEY; Key: string); override; 45 45 procedure SaveToRegistry(Root: HKEY; Key: string); override; 46 procedure Read ; override;47 procedure Write ; override;46 procedure Read(Job: TJob); override; 47 procedure Write(Job: TJob); override; 48 48 procedure Erase; override; 49 procedure Verify ; override;49 procedure Verify(Job: TJob); override; 50 50 procedure Reset; override; 51 51 function ReadIdentification: string; override; … … 212 212 end; 213 213 214 procedure TDallasProgrammer.Read ;214 procedure TDallasProgrammer.Read(Job: TJob); 215 215 var 216 216 Value: string; … … 236 236 237 237 //HexFile.SaveToStringList(HexData); 238 Job ProgressView.CurrentJob.Progress.Max := 65535 div 32;238 Job.Progress.Max := 65535 div 32; 239 239 //Request.Size := 0; 240 240 //ResponseClear; … … 266 266 ResponseLock.Release; 267 267 end; 268 Job ProgressView.CurrentJob.Progress.Value := I;269 if Job ProgressView.CurrentJob.Terminate then Break;268 Job.Progress.Value := I; 269 if Job.Terminate then Break; 270 270 until False; 271 271 //for I := 0 to HexData.Count - 1 do 272 272 // Log(HexData[I]); 273 if not Job ProgressView.CurrentJob.Terminate then273 if not Job.Terminate then 274 274 HexFile.LoadFromStringList(HexData); 275 275 end; 276 276 277 procedure TDallasProgrammer.Verify ;277 procedure TDallasProgrammer.Verify(Job: TJob); 278 278 var 279 279 Value: string; … … 292 292 end; 293 293 HexFile.SaveToStringList(HexData); 294 Job ProgressView.CurrentJob.Progress.Max := HexData.Count;294 Job.Progress.Max := HexData.Count; 295 295 for I := 0 to HexData.Count - 1 do begin 296 296 Request.Size := 0; … … 311 311 end; 312 312 CheckErrorCode(Value); 313 Job ProgressView.CurrentJob.Progress.Value := I;314 if Job ProgressView.CurrentJob.Terminate then Break;315 end; 316 end; 317 318 procedure TDallasProgrammer.Write ;313 Job.Progress.Value := I; 314 if Job.Terminate then Break; 315 end; 316 end; 317 318 procedure TDallasProgrammer.Write(Job: TJob); 319 319 var 320 320 Value: string; … … 333 333 end; 334 334 HexFile.SaveToStringList(HexData); 335 Job ProgressView.CurrentJob.Progress.Max := HexData.Count;335 Job.Progress.Max := HexData.Count; 336 336 for I := 0 to HexData.Count - 1 do begin 337 337 Request.Size := 0; … … 352 352 end; 353 353 CheckErrorCode(Value); 354 Job ProgressView.CurrentJob.Progress.Value := I;355 if Job ProgressView.CurrentJob.Terminate then Break;354 Job.Progress.Value := I; 355 if Job.Terminate then Break; 356 356 end; 357 357 end;
Note:
See TracChangeset
for help on using the changeset viewer.