Skip to content

Commit 8238a84

Browse files
committed
Fix _write return value in main.cpp
1 parent 3d923e9 commit 8238a84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/nRF5/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ int _write (int fd, const void *buf, size_t count)
114114

115115
if ( Serial )
116116
{
117-
Serial.write( (const uint8_t *) buf, count);
117+
return Serial.write( (const uint8_t *) buf, count);
118118
}
119+
return 0;
119120
}
120121

121122
}

0 commit comments

Comments
 (0)