minor print in temp_Fpgafl in eiger

This commit is contained in:
2020-09-18 14:18:19 +02:00
parent 0906efaf31
commit f6dd02acc2
2 changed files with 8 additions and 4 deletions

View File

@ -1313,9 +1313,9 @@ int getADC(enum ADCINDEX ind) {
return 0;
#else
int retval = -1;
char tempnames[6][20] = {"FPGA EXT", "10GE", "DCDC",
"SODL", "SODR", "FPGA"};
char *adc_names[] = {ADC_NAMES};
char cstore[255];
memset(cstore, 0, 255);
switch (ind) {
case TEMP_FPGA:
@ -1348,7 +1348,7 @@ int getADC(enum ADCINDEX ind) {
}
LOG(logINFO,
("Temperature %s: %f°C\n", tempnames[ind], (double)retval / 1000.00));
("Temperature %s: %f°C\n", adc_names[ind], (double)retval / 1000.00));
return retval;
#endif

View File

@ -63,6 +63,10 @@ enum ADCINDEX {
TEMP_FPGAFEBL,
TEMP_FPGAFEBR
};
#define ADC_NAMES \
"FPGA EXT", "10GE", "DCDC", "SODL", "SODR", "FPGA", "FPGA_FL", "FPGA_FR"
enum NETWORKINDEX { TXN_LEFT, TXN_RIGHT, TXN_FRAME, FLOWCTRL_10G };
enum ROINDEX { E_PARALLEL, E_NON_PARALLEL };
enum CLKINDEX { RUN_CLK, NUM_CLOCKS };