| Index: tools/battor_agent/battor_connection_impl.cc
|
| diff --git a/tools/battor_agent/battor_connection_impl.cc b/tools/battor_agent/battor_connection_impl.cc
|
| index e3dfa2df282e7eda11fef5d694c7320628d1800b..a6b861878eaa4ad4827b2dd8960d5664b1c04a42 100644
|
| --- a/tools/battor_agent/battor_connection_impl.cc
|
| +++ b/tools/battor_agent/battor_connection_impl.cc
|
| @@ -222,13 +222,7 @@ void BattOrConnectionImpl::OnBytesRead(int bytes_read,
|
| return;
|
| }
|
|
|
| - if (bytes_read == 0) {
|
| - // If we didn't have a message before, and we weren't able to read any
|
| - // additional bytes, then there's no valid message available.
|
| - LogSerial("Read failed due to no bytes being read.");
|
| - EndReadBytes(false, BATTOR_MESSAGE_TYPE_CONTROL, nullptr);
|
| - return;
|
| - }
|
| + // NOTE: Zero bytes may have been read.
|
|
|
| if (pending_read_message_type_ == BATTOR_MESSAGE_TYPE_SAMPLES) {
|
| // If we're reading samples, don't log every byte that we receive. This
|
|
|