X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fserial%2Ftestserial.cxx;h=828be05371e981013226c76ede7a4e95f37cb173;hb=bb2cc6ef2dc3c6bef17d2fe7a834da438b7ec817;hp=d1e9db96b53b474017d6f1c121cdbe70b8953d4b;hpb=689a942f193c1c15b4ddb4009958b7782cde44e7;p=simgear.git diff --git a/simgear/serial/testserial.cxx b/simgear/serial/testserial.cxx index d1e9db96..828be053 100644 --- a/simgear/serial/testserial.cxx +++ b/simgear/serial/testserial.cxx @@ -1,15 +1,21 @@ +#include + #include +#include #include #include "serial.hxx" -main () { - FGSerialPort port; +using std::cout; +using std::endl; + +int main () { + SGSerialPort port; string value; bool result; - fglog().setLogLevels( FG_ALL, FG_INFO ); + sglog().setLogLevels( SG_ALL, SG_INFO ); cout << "start of main" << endl; @@ -27,4 +33,6 @@ main () { cout << "-> " << value << endl; } } + + return 0; }