maygion-ipcam 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. data/lib/maygion-ipcam.rb +4 -4
  2. metadata +1 -1
@@ -23,19 +23,19 @@ class MayGionIPCam
23
23
  end
24
24
 
25
25
  def left(i=1)
26
- move_camera "&dir=btnPtzLeft&tick=%s&nPtzTimes=%s" % [i, i * 100]
26
+ move_camera "&dir=btnPtzLeft&tick=%s&nPtzTimes=%s" % [i * 100, i]
27
27
  end
28
28
 
29
29
  def right(i=1)
30
- move_camera "&dir=btnPtzRight&tick=%s&nPtzTimes=%s" % [i, i * 100]
30
+ move_camera "&dir=btnPtzRight&tick=%s&nPtzTimes=%s" % [i * 100, i]
31
31
  end
32
32
 
33
33
  def up(i=1)
34
- move_camera "&dir=btnPtzUp&tick=%s&nPtzTimes=%s" % [i, i * 100]
34
+ move_camera "&dir=btnPtzUp&tick=%s&nPtzTimes=%s" % [i * 100, i]
35
35
  end
36
36
 
37
37
  def down(i=1)
38
- move_camera "&dir=btnPtzDown&tick=%s&nPtzTimes=%s" % [i, i * 100]
38
+ move_camera "&dir=btnPtzDown&tick=%s&nPtzTimes=%s" % [i * 100, i]
39
39
  end
40
40
 
41
41
  def login(username, password)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maygion-ipcam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors: []
7
7