Skip to content

Commit

Permalink
fixup! fixup! fixup! 再実行時のケーブルの再接続を不要になるよう修正する
Browse files Browse the repository at this point in the history
  • Loading branch information
jiikko committed Dec 10, 2023
1 parent 4333e5d commit 5353972
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/procon_bypass_man/device_connection/executor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ def drain_all
ProconBypassMan.logger.error "timeoutになりました(#{e.message})"
procon.write_nonblock('8006')
5.times do
procon.read_nonblock(64)
data = procon.read_nonblock(64)
ProconBypassMan.logger.info "(>>> #{data.unpack("H*")})"
rescue IO::EAGAINWaitReadable
end
compressed_buffer_text = ProconBypassMan::CompressArray.new(debug_log_buffer).compress.join("\n")
Expand Down

0 comments on commit 5353972

Please sign in to comment.