View Single Post
Old 12-14-2018, 03:26 PM   #314
baskerville
Evangelist
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 443
Karma: 305160
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by NiLuJe View Post
I was under the impression only the ioctl return value was effectively checked, since rotation() only pulls the "cached" rotate value, it doesn't do a new GET.
The ioctl call mutates self.var_info.

I've attached a test binary that takes a different approach: if writing n fails, then I write (n+1)%4 and finally n.
Attached Files
File Type: zip plato-0.6.1-test.zip (1.49 MB, 128 views)
baskerville is offline   Reply With Quote