[chronojump/FS-LCD-Menu] Fixed timer interrupt while capturing
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/FS-LCD-Menu] Fixed timer interrupt while capturing
- Date: Fri, 3 Dec 2021 16:06:47 +0000 (UTC)
commit 5d8df94d782646c9b9e13ee4b61f35f1517df429
Author: Xavier Padullés <x padulles gmail com>
Date: Fri Dec 3 15:09:50 2021 +0100
Fixed timer interrupt while capturing
arduino/ForceSensorLCD/ForceSensorLCD.ino | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/arduino/ForceSensorLCD/ForceSensorLCD.ino b/arduino/ForceSensorLCD/ForceSensorLCD.ino
index dfafe183f..044ba26d5 100644
--- a/arduino/ForceSensorLCD/ForceSensorLCD.ino
+++ b/arduino/ForceSensorLCD/ForceSensorLCD.ino
@@ -314,6 +314,7 @@ void showMenu(void)
void capture(void)
{
+ MsTimer2::stop();
while (capturing)
{
//Checking the RCA state
@@ -375,17 +376,14 @@ void capture(void)
end_capture();
}
}
+ MsTimer2::start();
}
void printOnLcd() {
lcdCount = lcdCount + 1;
if (lcdCount >= lcdDelay)
{
- //lcd.clear();
- lcd.setCursor(0,0);
- lcd.print(" ");
- lcd.setCursor(0,0);
- lcd.print(" ");
+ lcd.clear();
showBatteryLevel();
printLcdFormat (measuredLcdDelayMax, 4, 0, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]