From b5efe72b237454aa87941979bf377aaaf1d4e3dd Mon Sep 17 00:00:00 2001 From: Maps Date: Wed, 18 Dec 2013 14:06:33 +0100 Subject: [PATCH] added units for CB DACs --- web/htdocs/scripts/xmlpage.js | 5 +++-- xml-db/database/CbController.xml | 24 ++++++++++++------------ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/web/htdocs/scripts/xmlpage.js b/web/htdocs/scripts/xmlpage.js index 486c551..ba51f50 100644 --- a/web/htdocs/scripts/xmlpage.js +++ b/web/htdocs/scripts/xmlpage.js @@ -41,7 +41,8 @@ function settarget(e) { - command=document.getElementById("target").value; + if(document.getElementById("target")) + command=document.getElementById("target").value; var opt = ""; if(document.getElementById("rate").checked) opt += "rate"; if(document.getElementById("cache").checked) opt += "cache"; @@ -55,4 +56,4 @@ var part = command.split('-'); command=part[0]+"-"+address+"-"+part[2]+part[3]; refresh(period); - } \ No newline at end of file + } diff --git a/xml-db/database/CbController.xml b/xml-db/database/CbController.xml index b3e872e..00792a3 100644 --- a/xml-db/database/CbController.xml +++ b/xml-db/database/CbController.xml @@ -61,14 +61,14 @@ Override the default UART functionality for debug reasons. If set to 1, UartDataIn and UartDataOut operate the UART directly. - Debug register for the UART - @@ -83,21 +83,21 @@ Set what the FPGA returns to the microcontroller over SPI line. - counts how many spi data words have been received - + Brings the uC to reset, when set Lo. - @@ -127,7 +127,7 @@ Address of the register that has to be sent to the FPGA. - @@ -229,19 +229,19 @@ - + - + - + @@ -253,13 +253,13 @@ - + - + -- 2.43.0