summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/features.txt4
-rw-r--r--manual/appendix/wps_tags.tex29
2 files changed, 25 insertions, 8 deletions
diff --git a/apps/features.txt b/apps/features.txt
index a9df26ba48..5dd7fd8720 100644
--- a/apps/features.txt
+++ b/apps/features.txt
@@ -62,6 +62,10 @@ headphone_detection
hold_button
#endif
+#if defined(HAS_REMOTE_BUTTON_HOLD)
+remote_button_hold
+#endif
+
#if defined(HAVE_LCD_BITMAP)
lcd_bitmap
#endif
diff --git a/manual/appendix/wps_tags.tex b/manual/appendix/wps_tags.tex
index a7c1822c50..9be085d01a 100644
--- a/manual/appendix/wps_tags.tex
+++ b/manual/appendix/wps_tags.tex
@@ -142,14 +142,27 @@ produce the information for the next file to be played.
\end{tagmap}
\end{table}
}
-\opt{h100,h300}{
-\section{Hold Switches}
-\begin{table}
- \begin{tagmap}{}{}
- \config{\%mh} & ``h'' if the main unit hold switch is on\\
- \config{\%mr} & ``r'' if the remote hold switch is on\\
- \end{tagmap}
-\end{table}
+
+% this will not include the "remote hold switch" tag for targets lacking
+% a main unit hold switch
+\opt{hold_button}{
+ \opt{remote_button_hold}{
+ \section{Hold Switches}
+ \begin{table}
+ \begin{tagmap}{}{}
+ \config{\%mh} & ``h'' if the main unit hold switch is on\\
+ \config{\%mr} & ``r'' if the remote hold switch is on\\
+ \end{tagmap}
+ \end{table}
+ }
+ \nopt{remote_button_hold}{
+ \section{Hold Switch}
+ \begin{table}
+ \begin{tagmap}{}{}
+ \config{\%mh} & ``h'' if the hold switch is on\\
+ \end{tagmap}
+ \end{table}
+ }
}
\section{Virtual LED}