summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2013-08-08 15:42:47 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2013-08-08 15:42:47 -0400
commit9b3247cc4ac1d731d6221bef448064d14bfddc74 (patch)
treeddd370037f8fabd9ccb83b1c19329130fbcf5c1d /device-functions.c
parent73d7c34660a5fbee66dfe95979778e0f9a86dee6 (diff)
added basic parser support for EW mode, and added ew_enabled to flash
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/device-functions.c b/device-functions.c
index 4e7e54f..6faff3e 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -1370,12 +1370,17 @@ int Set_Pwmode(int channel,int mode)
return SyntaxError;
}
+ if (!(globals.Flash.ew_enabled[channel]) && (mode==pw_ew_ext)) {
+ return SyntaxError;
+ }
+
if ((mode==pw_in_out) && (globals.ChannelState[channel].trigger_source!=source_external)) {
return AB_Mode_Error;
}
globals.ChannelState[channel].pw_ctrl_mode=mode;
+ // TODO: implement pw_ew_ext here!
Set_Mux(0);
Set_Update_Chans();