URS - LV11 - HMI - 2. zadatak

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
dfraj
Date:
Sat Jan 22 21:09:42 2022 +0000
Parent:
0:57ec9c61562e
Child:
2:d7142743ba21
Commit message:
pokretanje tajmera premjesteno iz funkcije prolaz u glavnu funkciju

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Jan 21 10:48:16 2022 +0000
+++ b/main.cpp	Sat Jan 22 21:09:42 2022 +0000
@@ -12,7 +12,6 @@
 void prolaz(){   
     T = t.read();
     t.reset();
-    t.start();
     flag = true;
 }
 
@@ -25,6 +24,7 @@
 }
 
 int main(){
+    t.start();
     optic.rise(&prolaz);
     sendData.attach(&data, 1.0);
     while(1) {