Searched hist:"38 cd74c88d7be550bb022572891f3037061460d5" (Results 1 – 2 of 2) sorted by relevance
/openbmc/phosphor-gpio-monitor/multi-presence/ |
H A D | main.cpp | diff 38cd74c88d7be550bb022572891f3037061460d5 Thu Nov 07 00:42:24 CST 2024 Yang Chen <yang.chen@quantatw.com> Continue on missing GPIOs in the monitor/presence
In some cases, if a GPIO is not found, the function returns -1 to exit the process. To improve this, change the return value from -1 to continue so each object can be handled separately. This ensures the JSON file fully parses even if some GPIOs are missing.
Change-Id: I83763d56963e3d2ec9981a95a1a0da17d0882910 Signed-off-by: Yang Chen <yang.chen@quantatw.com>
|
/openbmc/phosphor-gpio-monitor/ |
H A D | gpioMonMain.cpp | diff 38cd74c88d7be550bb022572891f3037061460d5 Thu Nov 07 00:42:24 CST 2024 Yang Chen <yang.chen@quantatw.com> Continue on missing GPIOs in the monitor/presence
In some cases, if a GPIO is not found, the function returns -1 to exit the process. To improve this, change the return value from -1 to continue so each object can be handled separately. This ensures the JSON file fully parses even if some GPIOs are missing.
Change-Id: I83763d56963e3d2ec9981a95a1a0da17d0882910 Signed-off-by: Yang Chen <yang.chen@quantatw.com>
|