1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-03 08:43:04 +00:00

Add more extensive use of cstdint typenames

This commit is contained in:
Carles Fernandez
2018-08-11 13:56:24 +02:00
parent d41ed73a00
commit 201c5ccd79
5 changed files with 432 additions and 430 deletions

View File

@@ -36,6 +36,7 @@
#include "nmea_printer.h"
#include <boost/date_time/posix_time/posix_time.hpp>
#include <glog/logging.h>
#include <cstdint>
#include <fcntl.h>
#include <termios.h>
@@ -86,11 +87,11 @@ int Nmea_Printer::init_serial(std::string serial_device)
*/
int fd = 0;
struct termios options;
long BAUD;
long DATABITS;
long STOPBITS;
long PARITYON;
long PARITY;
int64_t BAUD;
int64_t DATABITS;
int64_t STOPBITS;
int64_t PARITYON;
int64_t PARITY;
fd = open(serial_device.c_str(), O_RDWR | O_NOCTTY | O_NDELAY);
if (fd == -1) return fd; //failed to open TTY port