PiSugar / pisugar-power-manager-rs

PiSugar Power Manger in rust language
https://www.pisugar.com/
GNU General Public License v3.0
129 stars 15 forks source link

[BUG] Power output switch delay not taken into account #82

Open Bastien-BSF opened 1 year ago

Bastien-BSF commented 1 year ago

Environment

To Reproduce Steps to reproduce the behavior:

  1. Set the 0x09 register to 30
  2. Set the bit 5 of 0x02 address to 1

Expected behavior The PiSugar should cut the power output after waiting for 30 seconds as specified in 0x09. But instead it cuts the power immediately.