You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to use a bash until loop to retry a humility i2c command until it succeeds, but it looks like humility i2c (and possibly also humility hiffy?) exits with 0 when it was able to successfully execute the hiffy IPC operation on the device, but the IPC returned an error. For example:
IMO, it would be a bit nicer for humility to exit with a non-zero exit code when the on-device operation fails. That way, the error is visible to the user's shell and you don't have to do things like grepping for the string that indicates an error...
The text was updated successfully, but these errors were encountered:
I wanted to use a bash
until
loop to retry ahumility i2c
command until it succeeds, but it looks likehumility i2c
(and possibly alsohumility hiffy
?) exits with 0 when it was able to successfully execute the hiffy IPC operation on the device, but the IPC returned an error. For example:IMO, it would be a bit nicer for
humility
to exit with a non-zero exit code when the on-device operation fails. That way, the error is visible to the user's shell and you don't have to do things likegrep
ping for the string that indicates an error...The text was updated successfully, but these errors were encountered: