summaryrefslogtreecommitdiff
path: root/board/hyperdebug/gpio.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/hyperdebug/gpio.c')
-rw-r--r--board/hyperdebug/gpio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/hyperdebug/gpio.c b/board/hyperdebug/gpio.c
index a12b424032..dbffa7fefb 100644
--- a/board/hyperdebug/gpio.c
+++ b/board/hyperdebug/gpio.c
@@ -738,6 +738,11 @@ static int command_gpio_monitoring_read(int argc, const char **argv)
gpio_list[gpios[i]].name);
return EC_ERROR_PARAM3 + i;
}
+ if (slot->signal_no != i) {
+ ccprintf("Error: Inconsistent order at %s\n",
+ gpio_list[gpios[i]].name);
+ return EC_ERROR_PARAM3 + i;
+ }
if (buf == NULL) {
buf = slot->buffer;
} else if (buf != slot->buffer) {