Merge "Add basic inversion lock detection to DPMS." into pi-dev