comparison Discovery/Src/tHome.c @ 273:5fe136480a47

Merged in janlmulder/ostc4/write-from-sim (pull request #20) Cleanup and debug capabilty to write logbook from simulator
author heinrichsweikamp <bitbucket@heinrichsweikamp.com>
date Sun, 28 Apr 2019 07:05:23 +0000
parents 74a8296a2318
children 8466c994f3e6
comparison
equal deleted inserted replaced
267:cf6ad20380fb 273:5fe136480a47
283 case StDSIM4: 283 case StDSIM4:
284 Sim_Divetime(); 284 Sim_Divetime();
285 break; 285 break;
286 286
287 case StDBEAR: // t5_gauge 287 case StDBEAR: // t5_gauge
288 if(is_stateUsedSetToSim()) 288 stateUsedWrite->diveSettings.compassHeading = (uint16_t)stateUsed->lifeData.compass_heading;
289 stateSimGetPointerWrite()->diveSettings.compassHeading = (uint16_t)stateUsed->lifeData.compass_heading;
290 else
291 stateRealGetPointerWrite()->diveSettings.compassHeading = (uint16_t)stateUsed->lifeData.compass_heading;
292 set_globalState(StD); 289 set_globalState(StD);
293 break; 290 break;
294 291
295 case StDRAVG: // t5_gauge 292 case StDRAVG: // t5_gauge
296 timer_Stopwatch_Restart(); 293 timer_Stopwatch_Restart();