dbus-sensor: Fix the GPIO sensors hitting coredump
Reduce the diff made in
https://gbmc-review.git.corp.google.com/c/meta-gbmc-staging/+/4300 that
seems to be causing more issues.
Tested:
`xyz.openbmc_project.gpiosensor.service` doesn't hit coredump anymore.
It hits it every 20~ seconds before this change.
Always get the same value of sensors.
```
for i in {1..30}; do ipmitool sdr elist all > /tmp/attempt_$i
wc -l /tmp/attempt* | cut -d '/' -f1 | sort | uniq -c
1 8
2 9
1 13
1 292
25 294
1 7681 total
```
I canceled the last 5 so they have less.
```
292 /tmp/attempt_26
13 /tmp/attempt_27
9 /tmp/attempt_28
9 /tmp/attempt_29
8 /tmp/attempt_30
```
Google-Bug-Id: 280381395
Change-Id: I2cfd6dc2cb3d4a924532fb7559d637a2568c9c81
Signed-off-by: Willy Tu <wltu@google.com>
(cherry picked from commit cf26ffc8150e13d63fc1e00afa33e024e3934b87)
2 files changed