Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. int old_time = 0; // предыдущее время
  2. int current_time = 0; // текущие
  3.  
  4. void loop() {
  5.     //некий код....
  6.    
  7.     current_time = get_curent_time() // получаем текущие время
  8.     if (current_time >= (old_time + 60000)) {
  9.         dps.getPressure(&Pressure);
  10.         dps.getTemperature(&Temperature);
  11.         old_time = current_time;
  12.     }
  13.    
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement