Commit 89c3b146 authored by Maxime Coquelin's avatar Maxime Coquelin
Browse files

stlink_target_voltage: Check for libusb error



_stlink_usb_target_voltage already returns an error value.
If value return is positive, this is a voltage, if negative this is an error.
Check the return on callers side to inform there is an error in reading the
voltage, instead of notifying of a too low voltage.

Signed-off-by: default avatarMaxime Coquelin <mcoquelin.stm32@gmail.com>
parent 5fcad7d2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment