Skip to content

Commit 8de25a1

Browse files
committed
backplane tests error report
1 parent 73ab399 commit 8de25a1

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

src/eez/modules/bp3c/eeprom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ bool test() {
211211
#endif
212212

213213
if (g_testResult == TEST_FAILED) {
214-
generateError(SCPI_ERROR_EXT_EEPROM_TEST_FAILED);
214+
generateError(SCPI_ERROR_BP3C_EEPROM_TEST_FAILED);
215215
}
216216

217217
return g_testResult != TEST_FAILED;

src/eez/modules/mcu/battery.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
#include <eez/system.h>
2323
#include <eez/util.h>
2424

25+
#include <eez/modules/psu/psu.h>
26+
#include <scpi/scpi.h>
27+
2528
#include <adc.h>
2629
#include <dma.h>
2730

@@ -96,7 +99,13 @@ bool test() {
9699
#else
97100
g_testResult = TEST_SKIPPED;
98101
#endif
99-
return g_testResult != TEST_FAILED;
102+
103+
if (g_testResult == TEST_FAILED) {
104+
generateError(SCPI_ERROR_BATTERY_TEST_FAILED);
105+
return false;
106+
}
107+
108+
return true;
100109
}
101110

102111
void tick() {

src/eez/modules/mcu/eeprom.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ bool test() {
192192
#endif
193193

194194
if (g_testResult == TEST_FAILED) {
195-
generateError(SCPI_ERROR_EXT_EEPROM_TEST_FAILED);
195+
generateError(SCPI_ERROR_MCU_EEPROM_TEST_FAILED);
196196
}
197197

198198
return g_testResult != TEST_FAILED;

src/eez/scpi/scpi_user_config.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,13 @@ extern "C" {
116116
X(SCPI_ERROR_CH4_DAC_TEST_FAILED, 234, "CH4 DAC test failed") \
117117
X(SCPI_ERROR_CH5_DAC_TEST_FAILED, 235, "CH5 DAC test failed") \
118118
X(SCPI_ERROR_CH6_DAC_TEST_FAILED, 236, "CH6 DAC test failed") \
119-
X(SCPI_ERROR_EXT_EEPROM_TEST_FAILED, 240, "External EEPROM test failed") \
119+
X(SCPI_ERROR_MCU_EEPROM_TEST_FAILED, 240, "MCU EEPROM test failed") \
120120
X(SCPI_ERROR_RTC_TEST_FAILED, 250, "RTC test failed") \
121121
X(SCPI_ERROR_ETHERNET_TEST_FAILED, 260, "Ethernet test failed") \
122122
X(SCPI_ERROR_BACKPLANE_IOEXP_TEST_FAILED, 261, "Backplane IOEXP test failed") \
123123
X(SCPI_ERROR_DATETIME_TEST_FAILED, 262, "Date and time test failed") \
124+
X(SCPI_ERROR_BP3C_EEPROM_TEST_FAILED, 263, "Backplane EEPROM test failed") \
125+
X(SCPI_ERROR_BATTERY_TEST_FAILED, 264, "Battery test failed") \
124126
X(SCPI_ERROR_INCOMPATIBLE_TRANSIENT_MODES, 304, "Incompatible transient modes") \
125127
X(SCPI_ERROR_TOO_MANY_LIST_POINTS, 306, "Too many list points") \
126128
X(SCPI_ERROR_LIST_LENGTHS_NOT_EQUIVALENT, 307, "List lengths are not equivalent") \

0 commit comments

Comments
 (0)