Fixed indentation of a do-while loop in AsynDriverInterface.cc
This commit is contained in:
@ -667,11 +667,12 @@ writeHandler()
|
|||||||
|
|
||||||
pasynUser->timeout = 0;
|
pasynUser->timeout = 0;
|
||||||
if (!pasynGpib)
|
if (!pasynGpib)
|
||||||
|
{
|
||||||
// discard any early input, but forward it to potential async records
|
// discard any early input, but forward it to potential async records
|
||||||
// thus do not use pasynOctet->flush()
|
// thus do not use pasynOctet->flush()
|
||||||
// unfortunately we cannot do this with GPIB because addressing a device as talker
|
// unfortunately we cannot do this with GPIB because addressing a device as talker
|
||||||
// when it has nothing to say is an error. Also timeout=0 does not help here (would need
|
// when it has nothing to say is an error. Also timeout=0 does not help here
|
||||||
// a change in asynGPIB), thus use flush() for GPIB.
|
// (would need a change in asynGPIB), thus use flush() for GPIB.
|
||||||
do {
|
do {
|
||||||
char buffer [256];
|
char buffer [256];
|
||||||
size_t received = 0;
|
size_t received = 0;
|
||||||
@ -682,10 +683,12 @@ writeHandler()
|
|||||||
buffer, sizeof(buffer), &received, &eomReason);
|
buffer, sizeof(buffer), &received, &eomReason);
|
||||||
if (status == asynError || received == 0) break;
|
if (status == asynError || received == 0) break;
|
||||||
#ifndef NO_TEMPORARY
|
#ifndef NO_TEMPORARY
|
||||||
if (received) debug("AsynDriverInterface::writeHandler(%s): flushing %ld bytes: \"%s\"\n",
|
if (received) debug("AsynDriverInterface::writeHandler(%s): "
|
||||||
|
"flushing %ld bytes: \"%s\"\n",
|
||||||
clientName(), (long)received, StreamBuffer(buffer, received).expand()());
|
clientName(), (long)received, StreamBuffer(buffer, received).expand()());
|
||||||
#endif
|
#endif
|
||||||
} while (status == asynSuccess);
|
} while (status == asynSuccess);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
debug("AsynDriverInterface::writeHandler(%s): flushing old input\n",
|
debug("AsynDriverInterface::writeHandler(%s): flushing old input\n",
|
||||||
|
Reference in New Issue
Block a user