Skip to content

Commit 22d255b

Browse files
Merge branch 'master' of github.com:folkertvanheusden/kek
2 parents fa2e2c7 + def1157 commit 22d255b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

comm_pst.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#if !defined(BUILD_FOR_PICO2W)
66
#include <cstring>
77
#include <optional>
8+
#include <unistd.h>
89
#if WITH_PPS
910
#include <fcntl.h>
1011
#include <sys/timepps.h>
@@ -128,7 +129,7 @@ void comm_pst::operator()()
128129
while(!stop_flag) {
129130
pps_info_t infobuf { };
130131
if (time_pps_fetch(handles.value().first, PPS_TSFMT_TSPEC, &infobuf, nullptr) == -1) {
131-
DOLOG(log_ss::LS_COMM, "Cannot time_pps_fetch from %s: %s", dev_name, strerror(errno));
132+
DOLOG(log_ss::LS_COMM, "Cannot time_pps_fetch from %s: %s", dev_name.c_str(), strerror(errno));
132133
break;
133134
}
134135

0 commit comments

Comments
 (0)