summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
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();