Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 4DGL-UC ConfigFile MODSERIAL mbed mbos
Fork of CDU_Mbed_35 by
Diff: FS2CDU_data_5.cpp
- Revision:
- 9:1e117310b481
- Parent:
- 8:422544d24df3
--- a/FS2CDU_data_5.cpp Sun Jul 20 16:33:53 2014 +0000
+++ b/FS2CDU_data_5.cpp Sun Jul 20 18:48:19 2014 +0000
@@ -146,6 +146,10 @@
CDU_STATUS.exec_indicator = 0;
CDU_STATUS.backlight = 0;
CDU_STATUS.stby_mode = 0;
+ CDU_STATUS.fail_indicator = 0;
+ CDU_STATUS.dspy_indicator = 0;
+ CDU_STATUS.ofst_indicator = 0;
+
}
void read_datafields(int command_number) {
@@ -157,8 +161,7 @@
char ch;
modified = false;
- //CDU_OS.LockResource(FS_DATA_RESOURCE); // : lock FS database <<--- !!
-
+
switch ( command_number )
{ case 0:
{ // 0 is no valid commandnumber, do nothing
@@ -524,12 +527,44 @@
break;
}
+ case 10: // FAI command, FAIL indicator control CDU
+ {
+ // Get indicator status:
+ char_pntr = comma[1] + 1; // : set char pointer to char after comma 1
+ if (string_received[char_pntr] == '0' || string_received[char_pntr] == '1')
+ { CDU_STATUS.fail_indicator = atoi(&string_received[char_pntr]);
+ CDU_Status_Update = 1;
+ }
+ break;
+ }
+
+ case 11: // DPY command, DSPY indicator control CDU
+ {
+ // Get indicator status:
+ char_pntr = comma[1] + 1; // : set char pointer to char after comma 1
+ if (string_received[char_pntr] == '0' || string_received[char_pntr] == '1')
+ { CDU_STATUS.dspy_indicator = atoi(&string_received[char_pntr]);
+ CDU_Status_Update = 1;
+ }
+ break;
+ }
+
+ case 12: // OFS command, OFST indicator control CDU
+ {
+ // Get indicator status:
+ char_pntr = comma[1] + 1; // : set char pointer to char after comma 1
+ if (string_received[char_pntr] == '0' || string_received[char_pntr] == '1')
+ { CDU_STATUS.ofst_indicator = atoi(&string_received[char_pntr]);
+ CDU_Status_Update = 1;
+ }
+ break;
+ }
+
default:
{
// unknown commandnumber !
break;
}
-
}
CDU_OS.SetEvent(FS_DATA_EVENT,CDU_DSP_CSS_TASK_ID); // : set event for CDU screen update task
