Add safety checks for if st_flash fails

Previously there was no checks to confirm that st_flash was actually
detecting a valid firmware version number.  It seems that it sometimes
returns nothing, which currently causes the updating scripts to assume
that it must force a fw update which is most likely not true.  This CL
adds in some simple checks to confirm that there are actually values
returned before going ahead and trying to update the touchpad.

BUG=chrome-os-partner:61088
TEST=merged onto a device and ran

Change-Id: I594661b3c7421299bcf9f4c1514c87c58caac19b
Signed-off-by: Charlie Mooney <charliemooney@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/424612
Reviewed-by: Wei-Ning Huang <wnhuang@chromium.org>
1 file changed
tree: 627e0d0f10867778f9dab3d7ef186bca61cb0eca
  1. policies/
  2. scripts/
  3. LICENSE
  4. OWNERS
  5. README