Author Topic: Serial port (COM interface) programming  (Read 9078 times)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4977
  • O Rly?
    • View Profile
Re: Serial port (COM interface) programming
« Reply #15 on: 2018-Nov-19 »
I guess the line:

Code: GLBasic [Select]
buf[(int)nread] = '\0';

should be:

Code: GLBasic [Select]
buf[(int)nread] = "\0";

or:

Code: GLBasic [Select]
buf[(int)nread] = &'\0&';

Only KittyHello can tell...
« Last Edit: 2018-Nov-19 by Schranz0r »
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard