Welcome, Guest
Username: Password: Remember me
Components and Libraries for Networking Development, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

Problema with Synapse Serial and ARM Build 8 years 4 months ago #8441

  • German Pablo Gentile
  • German Pablo Gentile's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 51
  • Thank you received: 0
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.

Problema with Synapse Serial and ARM Build 8 years 4 months ago #8442

  • German Pablo Gentile
  • German Pablo Gentile's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 51
  • Thank you received: 0
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.

  • Page:
  • 1