We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de1566 commit 2e785d3Copy full SHA for 2e785d3
hal/interfaces/SerialCommunication.cpp
@@ -19,7 +19,7 @@ namespace hal
19
20
BufferedSerialCommunicationOnUnbuffered::~BufferedSerialCommunicationOnUnbuffered()
21
{
22
- delegate.ReceiveData([](infra::ConstByteRange) {});
+ delegate.ReceiveData(nullptr);
23
}
24
25
void BufferedSerialCommunicationOnUnbuffered::SendData(infra::ConstByteRange data, infra::Function<void()> actionOnCompletion)
@@ -40,7 +40,7 @@ namespace hal
40
41
void BufferedSerialCommunicationOnUnbuffered::Stop(const infra::Function<void()>& onDone)
42
43
44
scheduler.Schedule(onDone);
45
46
0 commit comments