Mercurial > public > ostc4
comparison Discovery/Src/tHome.c @ 361:b111fc4250e9 MotionDetection
Pass action to customer vie update function.
By intoducing shakes the reason for calling an update may not only be the middle button. To be able to handle positiv and negativ shake events the action is now provided to the update function
author | Ideenmodellierer |
---|---|
date | Tue, 11 Jun 2019 05:30:09 +0200 |
parents | 8466c994f3e6 |
children | 0dbf550dc743 |
comparison
equal
deleted
inserted
replaced
360:fc5e9fdcb156 | 361:b111fc4250e9 |
---|---|
40 #include "timer.h" // for timer_Stopwatch_Restart | 40 #include "timer.h" // for timer_Stopwatch_Restart |
41 #include "tMenu.h" | 41 #include "tMenu.h" |
42 #include "tMenuEditGasOC.h" // for openEdit_DiveSelectBetterGas() | 42 #include "tMenuEditGasOC.h" // for openEdit_DiveSelectBetterGas() |
43 #include "tMenuEditSetpoint.h" // for openEdit_DiveSelectBetterSetpoint() | 43 #include "tMenuEditSetpoint.h" // for openEdit_DiveSelectBetterSetpoint() |
44 #include "simulation.h" | 44 #include "simulation.h" |
45 #include "motion.h" | |
45 | 46 |
46 /* Private types -------------------------------------------------------------*/ | 47 /* Private types -------------------------------------------------------------*/ |
47 | 48 |
48 /* Exported variables --------------------------------------------------------*/ | 49 /* Exported variables --------------------------------------------------------*/ |
49 _Bool warning_count_high_time = 0; | 50 _Bool warning_count_high_time = 0; |
328 if(settingsGetPointer()->design == 7) | 329 if(settingsGetPointer()->design == 7) |
329 t7_change_field(); | 330 t7_change_field(); |
330 } | 331 } |
331 | 332 |
332 | 333 |
333 void tHome_change_customview_button_pressed(void) | 334 void tHome_change_customview_button_pressed(uint8_t action) |
334 { | 335 { |
335 tHome_tick_count_cview = 0; | 336 tHome_tick_count_cview = 0; |
336 if(settingsGetPointer()->design == 7) | 337 if(settingsGetPointer()->design == 7) |
337 t7_change_customview(); | 338 t7_change_customview(action); |
338 else | 339 else |
339 if(settingsGetPointer()->design == 3) | 340 if(settingsGetPointer()->design == 3) |
340 t3_change_customview(); | 341 t3_change_customview(); |
341 else | 342 else |
342 if(settingsGetPointer()->design == 5) | 343 if(settingsGetPointer()->design == 5) |