From 0fb89c4f7b9257b491e72b4fd456d49a3f5b2a28 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 7 Jun 2019 19:14:55 -0400 Subject: [PATCH] better status code --- firmware/controllers/engine_controller.cpp | 2 +- firmware/hw_layer/drivers/gpio/tle8888.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/controllers/engine_controller.cpp b/firmware/controllers/engine_controller.cpp index 41221e9c5c..4f08390f27 100644 --- a/firmware/controllers/engine_controller.cpp +++ b/firmware/controllers/engine_controller.cpp @@ -810,6 +810,6 @@ int getRusEfiVersion(void) { if (initBootloader() != 0) return 123; #endif /* EFI_BOOTLOADER_INCLUDE_CODE */ - return 20190605; + return 20190607; } #endif /* EFI_UNIT_TEST */ diff --git a/firmware/hw_layer/drivers/gpio/tle8888.c b/firmware/hw_layer/drivers/gpio/tle8888.c index b4bc7e5470..9efc7eada9 100644 --- a/firmware/hw_layer/drivers/gpio/tle8888.c +++ b/firmware/hw_layer/drivers/gpio/tle8888.c @@ -351,7 +351,7 @@ int tle8888_chip_init(void * data) uint16_t response; tle8888_spi_rw(chip, CMD_SR, &response); if (response == 253) { - initResponses++; + initResponses += 4; } /** @@ -364,7 +364,7 @@ int tle8888_chip_init(void * data) // second 0x13D=317 => 0x35=53 tle8888_spi_rw(chip, CMD_UNLOCK, &response); if (response == 53) { - initResponses++; + initResponses += 8; } chip->o_direct_mask = 0;