Update gain_viz/app.py

This commit is contained in:
G gael 2025-09-25 13:24:23 -04:00
parent 271fa73131
commit 0960b9a1e8

View File

@ -11,9 +11,9 @@ import serial
app = Flask(__name__) app = Flask(__name__)
# Path to save the plot image # Path to save the plot image
#PLOT_PATH = os.path.join(os.getcwd(), "plot.png") PLOT_PATH = os.path.join(os.getcwd(), "plot.png")
os.makedirs("/opt/gain_viz", exist_ok=True)
PLOT_PATH = "/opt/gain_viz/plot.png"
# Global variables for gain values # Global variables for gain values
usrp_tx_gain = 60 usrp_tx_gain = 60