flash rotate: use round instead of ceil 

commit flash sources