Skip to content

Commit

Permalink
discovery: increase serial timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
willeccles committed May 14, 2024
1 parent fedfafc commit 4902b92
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Discovery.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#include <bci/abs/CommonTypes.h>
#include <bci/abs/Discovery.h>
#include <bci/abs/SerialDriver.h>
#include <bci/abs/UdpMulticastDriver.h>

#include <array>
#include <string>
#include <string_view>

#include <bci/abs/CommonTypes.h>
#include <bci/abs/SerialDriver.h>
#include <bci/abs/UdpMulticastDriver.h>

#include "ScpiUtil.h"
#include "Util.h"

Expand Down Expand Up @@ -68,7 +67,7 @@ Result<SerialDeviceList> SerialDiscovery(std::string_view port,
for (std::uint8_t id = 0; max_devices > 0; ++id, --max_devices) {
driver.SetDeviceID(id);
ret = driver.Write("*IDN?\r\n", 100);
if (auto resp = driver.ReadLine(10)) {
if (auto resp = driver.ReadLine(50)) {
std::array<std::string_view, 4> idn;
if (scpi::SplitRespMnemonics(*resp, idn) != ErrorCode::kSuccess) {
return Err(ErrorCode::kInvalidResponse);
Expand Down

0 comments on commit 4902b92

Please sign in to comment.