mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
fixed bugs in shutter; need to check its work and finish readme
This commit is contained in:
@@ -31,8 +31,12 @@ static uint32_t maxCnum = 1024 / sizeof(user_conf); // can't use blocksize here
|
||||
.userconf_sz = sizeof(user_conf) \
|
||||
,.hallactive = 0 \
|
||||
,.ccdactive = 1 \
|
||||
,.minvoltage = 500 \
|
||||
,.workvoltage = 1300 \
|
||||
,.minvoltage = 400 \
|
||||
,.workvoltage = 700 \
|
||||
,.shutterrime = 20 \
|
||||
,.waitingtime = 30 \
|
||||
,.shtrVmul = 143 \
|
||||
,.shtrVdiv = 25 \
|
||||
}
|
||||
|
||||
static int write2flash(const void*, const void*, uint32_t);
|
||||
@@ -180,5 +184,9 @@ void dump_userconf(){
|
||||
USB_sendstr("\nhallactive="); USB_putbyte('0' + the_conf.hallactive);
|
||||
USB_sendstr("\nminvoltage="); USB_sendstr(u2str(the_conf.minvoltage));
|
||||
USB_sendstr("\nworkvoltage="); USB_sendstr(u2str(the_conf.workvoltage));
|
||||
USB_sendstr("\nshuttertime="); USB_sendstr(u2str(the_conf.shutterrime));
|
||||
USB_sendstr("\nwaitingtime="); USB_sendstr(u2str(the_conf.waitingtime));
|
||||
USB_sendstr("\nshtrvmul="); USB_sendstr(u2str(the_conf.shtrVmul));
|
||||
USB_sendstr("\nshtrdiv="); USB_sendstr(u2str(the_conf.shtrVdiv));
|
||||
newline();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user