Add compiler warnings in Debug mode
Fix missing braces
Fix refreshtime assignment
Release version 1.2.2