waterfurnace_aurora 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b47f532c4646441ceefb753b5de6bd9b18e335d25c4e48219509f778e7ddebb7
4
- data.tar.gz: 11988da61f95ac76957ca31e829ca521635431871b7c0f1bf800c78a66118362
3
+ metadata.gz: da4fc2ec80153f77b6f1f0971346cc3bdab4cfa59937d6855a1fb4de0be798e0
4
+ data.tar.gz: a92c46be932d97012865a308f60f890146eab3db29ec9e2499dc88552dd74a29
5
5
  SHA512:
6
- metadata.gz: b6c42b8fd67cb1440a7253cd5454d74702d84430ced9a005b6c7a8424be979da57718e08a8e2a9e92dbba8c8b14ab705eb9442676e01e6f428d00d16a5d0493c
7
- data.tar.gz: b0c40faa87893b6a2d2468d7c0ad3573fe11412ee715be9a89367c084ac21907db5c72eb546a4727d9c8fa163bf714d8f19b3f42040684a34f66116c82c3916a
6
+ metadata.gz: d126de657ef1ae47513c8f9a0cfa6c94d4a335e4f4fc4fb467bd3bca9aa193957e6edd506d8fe2ef0d87ec26ba3b4d34dbfa921e9977af3d7182f6db9bdc1341
7
+ data.tar.gz: 9098c02eb4ce2ac480ebd70739ae6f96b5ca6c7114a040a9374e7edf614b7ffcdd15f28c2750603ff69482cc6f21eede51c58ed686f7a4e82723545ed7b332a7
@@ -44,10 +44,11 @@ module Aurora
44
44
  totals
45
45
  end
46
46
 
47
+ NEGATABLE = ->(v) { v & 0x8000 == 0x8000 ? v - 0x10000 : v }
47
48
  TO_HUNDREDTHS = ->(v) { v.to_f / 100 }
48
49
  TO_TENTHS = ->(v) { v.to_f / 10 }
50
+ TO_SIGNED_TENTHS = ->(v) { NEGATABLE.call(v).to_f / 10 }
49
51
  TO_LAST_LOCKOUT = ->(v) { v & 0x8000 == 0x8000 ? v & 0x7fff : nil }
50
- NEGATABLE = ->(v) { v & 0x8000 == 0x8000 ? v - 0x10000 : v }
51
52
 
52
53
  def from_bitmask(value, flags)
53
54
  result = []
@@ -488,18 +489,20 @@ module Aurora
488
489
  REGISTER_CONVERTERS = {
489
490
  TO_HUNDREDTHS => [2, 3, 417, 418, 801, 804, 807, 813, 816, 817, 819, 820, 825, 828],
490
491
  method(:dipswitch_settings) => [4, 33],
491
- TO_TENTHS => [19, 20, 401, 419, 501, 502, 567, 740, 745, 746, 747, 900, 901, 903,
492
- 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1119, 1124, 1125, 1134,
493
- 3322, 3323, 3325, 3326, 3327, 3330, 3522, 3903, 3905, 3906,
492
+ TO_TENTHS => [401, 419, 745, 746, 901,
493
+ 1105, 1106, 1107, 1108, 1115, 1116, 1117, 1119,
494
+ 3322, 3323,
494
495
  12_619, 12_620,
495
496
  21_203, 21_204,
496
497
  21_212, 21_213,
497
498
  21_221, 21_222,
498
499
  21_230, 22_131,
499
500
  21_239, 21_240,
500
- 21_248, 21_249,
501
- 31_003,
502
- 31_007, 31_010, 31_013, 31_016, 31_019, 31_022],
501
+ 21_248, 21_249],
502
+ TO_SIGNED_TENTHS => [19, 20, 501, 502, 567, 740, 747, 900, 903,
503
+ 1109, 1110, 1111, 1112, 1113, 1114, 1124, 1125, 1134, 1135, 1136,
504
+ 3325, 3326, 3327, 3330, 3522, 3903, 3905, 3906,
505
+ 31_003, 31_007, 31_010, 31_013, 31_016, 31_019, 31_022],
503
506
  TO_LAST_LOCKOUT => [26],
504
507
  ->(v) { from_bitmask(v, SYSTEM_OUTPUTS) } => [27, 30],
505
508
  ->(v) { from_bitmask(v, SYSTEM_INPUTS) } => [28],
@@ -530,7 +533,6 @@ module Aurora
530
533
  ->(v) { COMPONENT_STATUS[v] } => [800, 803, 806, 812, 815, 818, 824, 827],
531
534
  method(:axb_inputs) => [1103],
532
535
  ->(v) { from_bitmask(v, AXB_OUTPUTS) } => [1104],
533
- ->(v) { TO_TENTHS.call(NEGATABLE.call(v)) } => [1135, 1136],
534
536
  method(:to_int32) => [1146, 1148, 1150, 1152, 1154, 1156, 1164, 3422, 3424],
535
537
  method(:manual_operation) => [3002],
536
538
  method(:thermostat_configuration2) => [12_006],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aurora
4
- VERSION = "1.3.0"
4
+ VERSION = "1.3.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waterfurnace_aurora
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-07 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ccutrer-serialport