react-native-flic2 2.0.0-beta.14 → 2.0.0-beta.16
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.
|
@@ -51,8 +51,7 @@ class Flic2ButtonEventListener(
|
|
|
51
51
|
// - Age is in seconds
|
|
52
52
|
// - Only meaningful for queued events; 0 for real-time events
|
|
53
53
|
val ageSeconds = if (wasQueued) {
|
|
54
|
-
|
|
55
|
-
timestamp
|
|
54
|
+
(button.getReadyTimestamp() - timestamp) / 1000.0
|
|
56
55
|
} else {
|
|
57
56
|
0.0
|
|
58
57
|
}
|
|
@@ -107,8 +106,7 @@ class Flic2ButtonEventListener(
|
|
|
107
106
|
// - Age is in seconds
|
|
108
107
|
// - Only meaningful for queued events; 0 for real-time events
|
|
109
108
|
val ageSeconds = if (wasQueued) {
|
|
110
|
-
|
|
111
|
-
timestamp
|
|
109
|
+
(button.getReadyTimestamp() - timestamp) / 1000.0
|
|
112
110
|
} else {
|
|
113
111
|
0.0
|
|
114
112
|
}
|
package/package.json
CHANGED