fix prescaler settings

fix the issue #278
@neilt6 Can you help to test it?