fork the master

Dependencies:   TextLCD mbed-rtos mbed

Fork of Pacemaker by pacemaker team

Revision:
16:a1c97cd207eb
Parent:
14:94f1b9e3eb43
Child:
17:6c44d5317c49
--- a/main.cpp	Mon Dec 01 23:36:53 2014 +0000
+++ b/main.cpp	Tue Dec 02 00:10:24 2014 +0000
@@ -43,8 +43,8 @@
 InterruptIn atrial_int(p17);
 InterruptIn vent_int(p18);
 
-const int a_pace = 5; //pin 21  a pace output
-const int v_pace = 3; //pin 23  v pace output
+const int a_pace = 3; //pin 23  a pace output
+const int v_pace = 2; //pin 24  v pace output
 
 bool aSensed = 0; // 0 means that we are expecting Apace or Asense next
 DigitalOut led1(LED1);   //apace
@@ -152,7 +152,7 @@
 }
 
 void vsense() {
-        if ((a_clock >= PVARP_l) && aSensed == 0){ 
+    if ((a_clock >= PVARP_l) && aSensed == 0){ 
         a_clock = 0;
         aSensed = 1;
         beat++;