DIYBookScanner/spreads — pull request #76 by nafraf (2014-04-05 20:58:00+00:00)
Title: Disable flash after modifying capture mode (monochrome)

After capture mode changes to monochrome, flash go to Auto mode. So, the suggestion is to move flash setting instructions to the end of function.

To reproduce the bug (A1400 starts in P mode, Flash off)
1) Create a new workflow with default options,
2) Capture,
3) Change workflow settings to monochrome capture
4) Capture -> Flash trigger

Test with chdkptp:
connected: Canon PowerShot A1400, max packet size 512
con> rec
con 1> luar capmode=require('capmode'); return capmode.get_name()
2:return:'P'
con 2> =return get_flash_mode();
3:return:2
con 3> luar capmode=require('capmode'); return capmode.set('SCN_MONOCHROME');
4:return:true
con 4> =return get_flash_mode();
5:return:0