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
tree: 23ba2411a3dd2577fb0972c46e7dd1893441382e
  1. conf/
  2. dynamic-layers/
  3. meta-nuvoton-npcm8xx/
  4. recipes-connectivity/
  5. recipes-core/
  6. recipes-devtools/
  7. recipes-extended/
  8. recipes-google/
  9. recipes-kernel/
  10. recipes-phosphor/
  11. LICENSE
  12. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.