× Components and Libraries for Networking Development, discussions, problems and suggestions

Question Problema with Synapse Serial and ARM Build

  • German Pablo Gentile
  • German Pablo Gentile's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 8 months ago #8441 by German Pablo Gentile
Problema with Synapse Serial and ARM Build was created by German Pablo Gentile
On this code

function GetSerialPortNames: string;
var
sr : TSearchRec;
begin
Result := '';
if FindFirst('/dev/ttyS*', $FFFFFFFF, sr) = 0 then

raise this exception

synaser.pas(2408,39) Error: range check error while evaluating constants (4294967295 must be between -2147483648 and 2147483647)

Please Log in or Create an account to join the conversation.

  • German Pablo Gentile
  • German Pablo Gentile's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 8 months ago #8442 by German Pablo Gentile
Replied by German Pablo Gentile on topic Problema with Synapse Serial and ARM Build
I just change the ATTRIBUTE to a lower number , i think is safe . Example:

///if FindFirst('/dev/ttyS*', $FFFFFFFF, sr) = 0 then
if FindFirst('/dev/ttyS*', $FFFFFFF, sr) = 0 then

Please Log in or Create an account to join the conversation.