<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Dec 7, 2013, at 5:43 AM, Denis Yantarev wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p>Ippon Back Power Pro responses are always padded to 64 bytes beyond \r payload terminator. When checking that command was successful (i.e. not echoed back) code relies on the response length reported by blazer_command which will always be 64. To fix this ippon_command should return actual payload length. This change also affects blazer_rating. Currently it assumes that battery voltage should be in %06.2f format, but in reality (and according to documentation) it may also look like %05.2f.</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull <a href="https://github.com/singular0/nut">https://github.com/singular0/nut</a> master</pre><p>Or view, comment on, or merge it at:</p><p>  <a href="https://github.com/networkupstools/nut/pull/80">https://github.com/networkupstools/nut/pull/80</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Fixed ippon response length reported incorrectly due to padding beyond \r</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/networkupstools/nut/pull/80/files#diff-0">drivers/blazer.c</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/networkupstools/nut/pull/80/files#diff-1">drivers/blazer_usb.c</a>
    (9)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href="https://github.com/networkupstools/nut/pull/80.patch">https://github.com/networkupstools/nut/pull/80.patch</a></li>
  <li><a href="https://github.com/networkupstools/nut/pull/80.diff">https://github.com/networkupstools/nut/pull/80.diff</a></li>
</ul>
</blockquote></div><div>Hi Denis,</div><div><br></div><div>Two things:</div><div><br></div><div>1) @zykh has rewritten the blazer* drivers as nutdrv_qx, and it also includes an ippon subdriver. I think we would like to deprecate the blazer* drivers in one of the upcoming releases, since nutdrv_qx is more flexible. At first glance, this code looks similar, so it should not be too hard to port (if it has not been accounted for already).</div><div><br></div><div>2) The description you provided in the pull request seems very helpful to future developers looking at this code. Since the pull requests are somewhat ephemeral, could that description be added to either a comment in the code, or the Git commit message?</div><div><br></div><div>Thanks,</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>-- </div><div>Charles Lepple</div><div>clepple@gmail</div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>