Ignore:
Timestamp:
Nov 19, 2012, 2:43:40 PM (12 years ago)
Author:
chronos
Message:
  • Fixed: Thread safe access to serial port pin interface using lock.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UPacketBurst.pas

    r414 r440  
    66
    77uses
    8   Classes, UCommPin, SyncObjs, UStreamHelper, UCommon, SysUtils, SpecializedList,
     8  Classes, UCommPin, SyncObjs, UCommon, SysUtils, SpecializedList,
    99  DateUtils, UBinarySerializer;
    1010
     
    138138        while (SendStream.List.Count - SendStream.Position) > SendBurstSize do begin
    139139          Stream.Count := 0;
    140           SendStream.ReadStream(TStream(Stream), SendBurstSize);
     140          SendStream.ReadList(Stream, 0, SendBurstSize);
    141141          PacketBurstPin.Send(Stream);
    142142        end;
Note: See TracChangeset for help on using the changeset viewer.