Commit 56fe52f2 authored by Andrey Filippov's avatar Andrey Filippov

fixed typo

parent 185e5c46
...@@ -2380,7 +2380,7 @@ PHP_FUNCTION(elphel_frame2ts) { ...@@ -2380,7 +2380,7 @@ PHP_FUNCTION(elphel_frame2ts) {
cframe = ELPHEL_GLOBALPARS(port, G_COMPRESSOR_FRAME); cframe = ELPHEL_GLOBALPARS(port, G_COMPRESSOR_FRAME);
cts = ELPHEL_GLOBALPARS(port, G_COMPRESSOR_SEC) + 0.000001* ELPHEL_GLOBALPARS(port, G_COMPRESSOR_USEC); cts = ELPHEL_GLOBALPARS(port, G_COMPRESSOR_SEC) + 0.000001* ELPHEL_GLOBALPARS(port, G_COMPRESSOR_USEC);
if (frame > 0){ // if <=0 (or absent) return last compressed frame if (frame > 0){ // if <=0 (or absent) return last compressed frame
// Read trigger decimation (used when slower sesnor is triggered by the faster one, like MT9P006 from Boson-640 // Read trigger decimation (used when slower sensor is triggered by the faster one, like MT9P006 from Boson-640
trig_decimate = ((struct framepars_t *) ELPHEL_G(framePars[port]))[cframe & PARS_FRAMES_MASK ].pars[P_TRIG_DECIMATE] + 1; trig_decimate = ((struct framepars_t *) ELPHEL_G(framePars[port]))[cframe & PARS_FRAMES_MASK ].pars[P_TRIG_DECIMATE] + 1;
// read trigger period (even for externally triggered slaves this value has to be defined and used for period) // read trigger period (even for externally triggered slaves this value has to be defined and used for period)
period_sec = 0.00000001 * trig_decimate * (((struct framepars_t *) ELPHEL_G(framePars[port]))[cframe & PARS_FRAMES_MASK ].pars[P_TRIG_PERIOD]); period_sec = 0.00000001 * trig_decimate * (((struct framepars_t *) ELPHEL_G(framePars[port]))[cframe & PARS_FRAMES_MASK ].pars[P_TRIG_PERIOD]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment