Mercurial > public > ostc4
comparison Small_CPU/Src/scheduler.c @ 951:e9c37071933b Evo_2_23
Added vibration warning:
The internal buzzer of the GPIO_V2 may now be used as additional warning notificator. It can be activated using the check button in the customer view menu. The vibration will be active while the warning message is displayed in the dive window. In case the diver is in the menu then the warning will be active for a shorter duration.
author | Ideenmodellierer |
---|---|
date | Sun, 29 Dec 2024 18:29:56 +0100 |
parents | 96cf6c53c934 |
children | 9b29995d6619 |
comparison
equal
deleted
inserted
replaced
950:922ee3d7d2f3 | 951:e9c37071933b |
---|---|
340 externalInface_SetSensorMap(global.dataSendToSlave.data.externalInterface_SensorMap); | 340 externalInface_SetSensorMap(global.dataSendToSlave.data.externalInterface_SensorMap); |
341 if(global.dataSendToSlave.data.externalInterface_Cmd & 0x00FF) /* lowest nibble for commands */ | 341 if(global.dataSendToSlave.data.externalInterface_Cmd & 0x00FF) /* lowest nibble for commands */ |
342 { | 342 { |
343 externalInterface_ExecuteCmd(global.dataSendToSlave.data.externalInterface_Cmd); | 343 externalInterface_ExecuteCmd(global.dataSendToSlave.data.externalInterface_Cmd); |
344 } | 344 } |
345 #ifdef ENABLE_GPIO_V2 | |
346 GPIO_HandleBuzzer(); | |
347 #endif | |
345 | 348 |
346 | 349 |
347 #if 0 | 350 #if 0 |
348 //TODO: Temporary placed here. Duration ~210 ms. | 351 //TODO: Temporary placed here. Duration ~210 ms. |
349 if (global.I2C_SystemStatus != HAL_OK) { | 352 if (global.I2C_SystemStatus != HAL_OK) { |