Rename TARGET_* -> INTENT_ALT_*
Rearrange the intent tracking a bit.
This commit is contained in:
parent
2142d2edf5
commit
27b0e9c40f
4 changed files with 23 additions and 23 deletions
8
mode_s.c
8
mode_s.c
|
|
@ -1716,16 +1716,16 @@ void displayModesMessage(struct modesMessage *mm) {
|
|||
if (mm->intent.alt_setting_valid)
|
||||
printf(" Altimeter setting: %.1f millibars\n", mm->intent.alt_setting);
|
||||
|
||||
if (mm->intent.altitude_source != TARGET_INVALID) {
|
||||
if (mm->intent.altitude_source != INTENT_ALT_INVALID) {
|
||||
printf(" Target altitude source: ");
|
||||
switch (mm->intent.altitude_source) {
|
||||
case TARGET_AIRCRAFT:
|
||||
case INTENT_ALT_AIRCRAFT:
|
||||
printf("aircraft altitude\n");
|
||||
break;
|
||||
case TARGET_MCP:
|
||||
case INTENT_ALT_MCP:
|
||||
printf("MCP selected altitude\n");
|
||||
break;
|
||||
case TARGET_FMS:
|
||||
case INTENT_ALT_FMS:
|
||||
printf("FMS selected altitude\n");
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue