When changing pwd period for Gen2, store in pwd_period member variable (not period).
Merge pull request #2 from jackpien/master

When changing pwd period for Gen2, store in pwd_period member variable