From 7a3b4bac691e1b8c5d3f412835ce9b518879a62b Mon Sep 17 00:00:00 2001 From: haller Date: Sat, 23 Apr 2005 16:54:38 +0000 Subject: Correction dans proto::wait : on fixe la limite de l'argument timeout à proto::timeout_ --- 2005/i/robert/src/proto/proto.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '2005/i/robert/src/proto/proto.cc') diff --git a/2005/i/robert/src/proto/proto.cc b/2005/i/robert/src/proto/proto.cc index 94704fb..d1ba655 100644 --- a/2005/i/robert/src/proto/proto.cc +++ b/2005/i/robert/src/proto/proto.cc @@ -187,7 +187,8 @@ Proto::decode (const Frame &frame, const char *format, int &a0, bool Proto::wait (int timeout/*-1*/) { - serial_.wait (timeout); + // On apelle serial_.wait avec un timeout toujours inf ou égal à proto::timeout_ + serial_.wait (timeout < timeout_ ? timeout : timeout_); return sync (); } -- cgit v1.2.3