changes to PIDGen function to prevent lockups at high values
Merge branch 'dev' of https://github.com/MobileDigitalImaging/pmd_ordernew into dev