fixes #5449

missing variable updating lead to APCs stuck in green status during powersinks.
see https://github.com/Baystation12/Baystation12/issues/5449