Hey, this is a little off topic, but .. not really. I'm trying to distill mailbox.py so I can use it in another open-source app without needing the heavy dependencies of py-videocore. I'm getting errors with the struct, and I don't think it has to do with what I've removed. Including the output first and then the code.
oh! rubber duck debugging worked. The temperature methods require an argument be passed in, which is 0. Not sure what it represents, but calling m.get_max_temperature(0) works, m.get_max_temperature() fails.
Hey, this is a little off topic, but .. not really. I'm trying to distill
mailbox.py
so I can use it in another open-source app without needing the heavy dependencies of py-videocore. I'm getting errors with the struct, and I don't think it has to do with what I've removed. Including the output first and then the code.Here's the "distilled" class.