summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-python/recipes-devtools/python/python3-gpiod
diff options
context:
space:
mode:
authorPotin Lai <potin.lai@quantatw.com>2025-03-31 13:04:08 +0300
committerPotin Lai <potin.lai@quantatw.com>2025-03-31 15:51:12 +0300
commite2ca5f1780333377f7e4a385be8cbb445d7e250c (patch)
tree226f5243fe3176a216ebdda271d2bb642810341f /meta-openembedded/meta-python/recipes-devtools/python/python3-gpiod
parent360c5182f176b19098c303c37533f7fe786a0d65 (diff)
downloadopenbmc-e2ca5f1780333377f7e4a385be8cbb445d7e250c.tar.xz
meta-facebook: catalina: Fix PDB_MAX_VR_TEMP_C N/A Issue
Resolve an issue where the `max()` function fails if the first parameter is N/A. Add 0 as a minimum value in the comparison list to ensure proper functionality and prevent errors. Test results: - PDB Main ``` root@bmc:~# mfg-tool sensor-display 2>/dev/null | table-sensor-display | egrep 'PDB_VR|PDB_MAX' | grep TEMP_C PDB_MAX_VR_TEMP_C ok 39 DegreesC N/A N/A N/A N/A N/A N/A PDB_VR_P12V_AUX_TEMP_C ok 31 DegreesC N/A 5 N/A N/A 125 N/A PDB_VR_P12V_N1_TEMP_C ok 38 DegreesC N/A 5 N/A N/A 125 N/A PDB_VR_P12V_N2_TEMP_C ok 39 DegreesC N/A 5 N/A N/A 125 N/A ``` - PDB Brick ``` root@potin-catalina-bmc:~# mfg-tool sensor-display 2>/dev/null | table-sensor-display | egrep 'PDB_BRICK|PDB_MAX' | grep TEMP_C PDB_BRICK0_P12V_AUX_TEMP_C ok 42 DegreesC N/A 5 N/A N/A 113 N/A PDB_BRICK0_P12V_N1_TEMP_C ok 47 DegreesC N/A 5 N/A N/A 113 N/A PDB_BRICK0_P12V_N2_TEMP_C ok 50 DegreesC N/A 5 N/A N/A 113 N/A PDB_BRICK1_P12V_N1_TEMP_C ok 49 DegreesC N/A 5 N/A N/A 113 N/A PDB_BRICK1_P12V_N2_TEMP_C ok 46 DegreesC N/A 5 N/A N/A 113 N/A PDB_MAX_VR_TEMP_C ok 50 DegreesC N/A N/A N/A N/A N/A N/A ``` Change-Id: I5f9943122f588cb65d89ebf2e04e56846d7fc497 Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-gpiod')
0 files changed, 0 insertions, 0 deletions