From af34287ac28b3b6bf5b001ede07b685f8dedbd39 Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Mon, 25 May 2020 14:44:40 +0200
Subject: [PATCH] added some comments

---
 ant_menu.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/ant_menu.c b/ant_menu.c
index 05a929c..771b390 100644
--- a/ant_menu.c
+++ b/ant_menu.c
@@ -60,6 +60,9 @@ static gboolean delete_event(GtkWidget *widget, GdkEvent *event, gpointer user_d
 }
 
 static void rx_ant_cb(GtkToggleButton *widget, gpointer data) {
+  //
+  // Note this function is only called for the ORIGINAL and NEW protocol
+  //
   if(gtk_toggle_button_get_active(widget)) {
     int b=(GPOINTER_TO_UINT(data))>>4;
     int ant=(GPOINTER_TO_UINT(data))&0xF;
@@ -70,6 +73,9 @@ static void rx_ant_cb(GtkToggleButton *widget, gpointer data) {
 }
 
 static void adc0_antenna_cb(GtkComboBox *widget,gpointer data) {
+  //
+  // Note this function is only called for the SOAPYSDR protocol
+  //
   ADC *adc=(ADC *)data;
   adc->antenna=gtk_combo_box_get_active(widget);
   if(radio->protocol==NEW_PROTOCOL) {
@@ -82,6 +88,9 @@ static void adc0_antenna_cb(GtkComboBox *widget,gpointer data) {
 }
 
 static void dac0_antenna_cb(GtkComboBox *widget,gpointer data) {
+  //
+  // Note this function is only called for the SOAPYSDR protocol
+  //
   DAC *dac=(DAC *)data;
   dac->antenna=gtk_combo_box_get_active(widget);
   if(radio->protocol==NEW_PROTOCOL) {
@@ -94,6 +103,9 @@ static void dac0_antenna_cb(GtkComboBox *widget,gpointer data) {
 }
 
 static void tx_ant_cb(GtkToggleButton *widget, gpointer data) {
+  //
+  // Note this function is only called for the ORIGINAL and NEW protocol
+  //
   if(gtk_toggle_button_get_active(widget)) {
     int b=(GPOINTER_TO_UINT(data))>>4;
     int ant=(GPOINTER_TO_UINT(data))&0xF;
-- 
2.45.2