Fix conflict with auto and hand active flash init
Remove magic constant, fix bad code