From 064fd1aa9dde444631223c0bae81311b4b846326 Mon Sep 17 00:00:00 2001 From: Marco Gulino Date: Tue, 16 Jun 2020 20:28:29 +0100 Subject: [PATCH] Fix camera continuous shooting broken. fixes #236 --- frontend/src/Camera/AutoExposureContainer.js | 2 +- frontend/src/Camera/actions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Camera/AutoExposureContainer.js b/frontend/src/Camera/AutoExposureContainer.js index 1de0c00d..35b8d480 100644 --- a/frontend/src/Camera/AutoExposureContainer.js +++ b/frontend/src/Camera/AutoExposureContainer.js @@ -11,7 +11,7 @@ class AutoExposure extends React.Component { const {shouldAutostart, shotParameters, shoot} = this.props; if(shouldAutostart && ! prevProps.shouldAutostart) { - shoot(shotParameters); + shoot(shotParameters, this.props.section); } } } diff --git a/frontend/src/Camera/actions.js b/frontend/src/Camera/actions.js index b54b8e93..87d7946c 100644 --- a/frontend/src/Camera/actions.js +++ b/frontend/src/Camera/actions.js @@ -12,7 +12,7 @@ export const shoot = (parameters, section) => (dispatch) => { } return false; }); -} +}; export const setCamera = (camera, section) => ({ type: 'SET_CURRENT_CAMERA', camera, section }); export const setFilterWheel = (filterWheel, section) => ({ type: 'SET_CURRENT_FILTER_WHEEL', filterWheel, section });