Skip to content

Commit c40a013

Browse files
authored
1 parent 4737a9b commit c40a013

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/src/arch/linux/net_serial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ int raw_serial::waitfordata(size_t data_count, _u32 timeout, size_t * returned_s
226226

227227
while ( isOpened() )
228228
{
229-
time_t now = time(nullptr) * 1000;
229+
time_t now = time((void*)NULL) * 1000;
230230
if ((now - startTime) > timeout) {
231231
return ANS_TIMEOUT;
232232
}

0 commit comments

Comments
 (0)