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