canonball 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca329e83d2689a4ac6bce54c74d4c53d6083d352
4
- data.tar.gz: 68204d63c201a193a118fcbec3e4fe193bb3db04
3
+ metadata.gz: 7069f513fa9be84c5b4e7f4f999943825fc05747
4
+ data.tar.gz: 423e312e031e3d521768e2e3cb4aae638a91ef47
5
5
  SHA512:
6
- metadata.gz: bc5dbb47c44136ccfb000426ac7a2a7df092b5da1a970083cc2d0b61ffb4edfcc3ae825b8a826406000563a900d2e155736cddaa5c772e6f758a5f7d5e5e960f
7
- data.tar.gz: 1ab8b92cec6da3b89bd7d57b82d148973e7bdc6f7ebaf2e7834db8276d958e542a245dab649a42e45d91437ed1b8031bc783ed271c35773ce9b4848a97455885
6
+ metadata.gz: 047cdc0a45e89b4da515c1b2d5c92d5717868d5077b413a433a89e9a9f4a660bdcd306b082ca62a455af9ba6b4bac067de201b98f48bc610ddec82800eb56138
7
+ data.tar.gz: bb44f685376f58945d1a8dd71ccef2a42e6ccdff61eb613bbcaceeab9bc2c26077b012108e8660fc2d15b6b11dbdde8bb299770eb691de45e0fb2b30d62c4258
@@ -11,12 +11,9 @@ module Canonball
11
11
  attach_function :open_camera_session, [ :int ], :int
12
12
  attach_function :close_camera_session, [], :int
13
13
  attach_function :take_picture, [], :int
14
+ attach_function :set_drive_mode, [], :int
14
15
  attach_function :press_shutter_button, [], :int
15
16
  attach_function :press_shutter_button_non_af, [], :int
16
17
  attach_function :download_files, [ :int, :string], :int
17
18
 
18
- def self.open_mirror
19
- press_shutter_button_non_af
20
- end
21
-
22
19
  end
Binary file
@@ -1,3 +1,3 @@
1
1
  module Canonball
2
- VERSION = "2.2.0"
2
+ VERSION = "2.3.0"
3
3
  end
@@ -40,6 +40,13 @@ int take_picture() {
40
40
  return error;
41
41
  }
42
42
 
43
+ int set_drive_mode() {
44
+ EdsError error = EDS_ERR_OK;
45
+ EdsUInt32 driveMode = 0x00000014;
46
+ if (error == EDS_ERR_OK) error = EdsSetPropertyData(camera, kEdsPropID_DriveMode, 0, sizeof(driveMode), &driveMode);
47
+ return error;
48
+ }
49
+
43
50
  int press_shutter_button() {
44
51
  EdsError error = EDS_ERR_OK;
45
52
  if (error == EDS_ERR_OK) error = EdsSendCommand(camera , kEdsCameraCommand_PressShutterButton, kEdsCameraCommand_ShutterButton_Completely);
@@ -30,6 +30,10 @@ extern "C" {
30
30
  int take_picture();
31
31
  }
32
32
 
33
+ extern "C" {
34
+ int set_drive_mode();
35
+ }
36
+
33
37
  extern "C" {
34
38
  int press_shutter_button();
35
39
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canonball
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Christopher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-10 00:00:00.000000000 Z
11
+ date: 2015-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler