summaryrefslogtreecommitdiff
path: root/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-matplotlib
diff options
context:
space:
mode:
authorEric Yang <eric.yang.wiwynn@gmail.com>2026-03-05 10:40:32 +0300
committerPatrick Williams <patrick@stwcx.xyz>2026-03-06 05:36:36 +0300
commit852317b4cb4580ed253af5295978dd987f7e7449 (patch)
tree80b349dab6ba57a4189ed7f61ee5a472ce6cd784 /upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-matplotlib
parenta1fa5ced69d12950961ea66992695a51ed4356cb (diff)
downloadopenbmc-852317b4cb4580ed253af5295978dd987f7e7449.tar.xz
meta-facebook: yosemite4: state: Fix missing return code in power-cmd
The gpio_get(), gpio_set(), and get_ac_on_status() functions in power-cmd only used echo to indicate failure without returning a non-zero exit code. Since echo always succeeds (returns 0), all callers using 'if !' to check the return code could never reach their error handling paths. Add 'return 1' after the failure echo in each function so that callers such as chassis-powercycle, chassis-poweroff, and chassis-poweron can properly detect and handle GPIO operation failures. Change-Id: I6277b81b73915979c3e60c8a3dfa09cd8aa948fb Signed-off-by: Eric Yang <eric.yang.wiwynn@gmail.com>
Diffstat (limited to 'upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-matplotlib')
0 files changed, 0 insertions, 0 deletions