Skip to content
  • Gerhard Sittig's avatar
    scpi: Rephrase length logic in data block reception, comment/group code · 26e8c6a2
    Gerhard Sittig authored
    Slightly rephrase the SCPI code which parses the responses that carry
    (binary) data blocks. Be explicit about NUL termination when parsing the
    leading length spec in the response, obsoleting the array initializer.
    Add lots of comments and group source code lines to better reflect
    what's happening from the protocol's perspective.
    
    Fix the returned error code in the path which reads responses of
    excessive length in chunks. The previous implementation detected errors
    but always returned code 0 (success).
    26e8c6a2