[chronojump] forceSensor changeSlide fixed for microseconds firmware
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] forceSensor changeSlide fixed for microseconds firmware
- Date: Sun, 4 Mar 2018 18:27:59 +0000 (UTC)
commit 01079d216b76f2982339d950756e556d2c557074
Author: Xavier de Blas <xaviblas gmail com>
Date: Sun Mar 4 19:27:24 2018 +0100
forceSensor changeSlide fixed for microseconds firmware
src/gui/forceSensor.cs | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gui/forceSensor.cs b/src/gui/forceSensor.cs
index a0fb2d4..66ab413 100644
--- a/src/gui/forceSensor.cs
+++ b/src/gui/forceSensor.cs
@@ -1310,17 +1310,17 @@ LogB.Information(" fc R ");
double lastChangedTime; //changeSlideCode
private void changeSlideIfNeeded(int time, double force)
{
- if(force > 100) {
+ if(force > 75) {
//changeSlide if one second or more elapsed since last change
- if(time - lastChangedTime >= 1)
+ if(time - lastChangedTime >= 1000000)
{
changeSlide(true);
lastChangedTime = time;
}
}
- if(force < -100) {
+ if(force < -75) {
//changeSlide if one second or more elapsed since last change
- if(time - lastChangedTime >= 1)
+ if(time - lastChangedTime >= 1000000)
{
changeSlide(false);
lastChangedTime = time;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]