Skip to content

Commit

Permalink
remove --no-keep
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Jul 9, 2018
1 parent d61a80e commit c588e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/picture_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def capture_job(num, picture_set, angle)
GpioPort.on(GpioPort::GPIO_PORTS["PICTURE#{num}"])
begin
retries ||= 0
Syscall.execute('gphoto2 --capture-image-and-download --no-keep' \
Syscall.execute('gphoto2 --capture-image-and-download ' \
"--filename #{picture_set.date}_#{num}.jpg", dir: picture_set.dir)
raise 'Image capture failed' unless File.exist?(File.join(picture_set.dir, "#{picture_set.date}_#{num}.jpg"))
rescue StandardError => e
Expand Down

0 comments on commit c588e90

Please sign in to comment.