From ca7c6b6c39bd7e8d191b95f4db0f5ca672d399de Mon Sep 17 00:00:00 2001 From: lewisxhe Date: Tue, 28 Jan 2025 23:47:40 +0800 Subject: [PATCH] [SensorBHI260AP] Fix BoschSensorInfo print format --- src/bosch/BoschSensorInfo.hpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/bosch/BoschSensorInfo.hpp b/src/bosch/BoschSensorInfo.hpp index ab38676..5dd6275 100644 --- a/src/bosch/BoschSensorInfo.hpp +++ b/src/bosch/BoschSensorInfo.hpp @@ -181,28 +181,28 @@ class BoschSensorInfo { stream.printf("Boot Status : 0x%02x: ", boot_status); if (boot_status & BHY2_BST_FLASH_DETECTED) { - stream.printf("\tFlash detected. "); + stream.printf("\tFlash detected. \n"); } if (boot_status & BHY2_BST_FLASH_VERIFY_DONE) { - stream.printf("\tFlash verify done. "); + stream.printf("\tFlash verify done. \n"); } if (boot_status & BHY2_BST_FLASH_VERIFY_ERROR) { - stream.printf("Flash verification failed. "); + stream.printf("Flash verification failed. \n"); } if (boot_status & BHY2_BST_NO_FLASH) { - stream.printf("\tNo flash installed. "); + stream.printf("\tNo flash installed. \n"); } if (boot_status & BHY2_BST_HOST_INTERFACE_READY) { - stream.printf("\tHost interface ready. "); + stream.printf("\tHost interface ready. \n"); } if (boot_status & BHY2_BST_HOST_FW_VERIFY_DONE) { - stream.printf("\tFirmware verification done. "); + stream.printf("\tFirmware verification done. \n"); } if (boot_status & BHY2_BST_HOST_FW_VERIFY_ERROR) { - stream.printf("\tFirmware verification error. "); + stream.printf("\tFirmware verification error. \n"); } if (boot_status & BHY2_BST_HOST_FW_IDLE) { - stream.printf("\tFirmware halted. "); + stream.printf("\tFirmware halted. \n"); } } @@ -253,28 +253,28 @@ class BoschSensorInfo { printf("Boot Status : 0x%02x: ", boot_status); if (boot_status & BHY2_BST_FLASH_DETECTED) { - printf("\tFlash detected. "); + printf("\tFlash detected. \n"); } if (boot_status & BHY2_BST_FLASH_VERIFY_DONE) { - printf("\tFlash verify done. "); + printf("\tFlash verify done. \n"); } if (boot_status & BHY2_BST_FLASH_VERIFY_ERROR) { - printf("Flash verification failed. "); + printf("Flash verification failed. \n"); } if (boot_status & BHY2_BST_NO_FLASH) { - printf("\tNo flash installed. "); + printf("\tNo flash installed. \n"); } if (boot_status & BHY2_BST_HOST_INTERFACE_READY) { - printf("\tHost interface ready. "); + printf("\tHost interface ready. \n"); } if (boot_status & BHY2_BST_HOST_FW_VERIFY_DONE) { - printf("\tFirmware verification done. "); + printf("\tFirmware verification done. \n"); } if (boot_status & BHY2_BST_HOST_FW_VERIFY_ERROR) { - printf("\tFirmware verification error. "); + printf("\tFirmware verification error. \n"); } if (boot_status & BHY2_BST_HOST_FW_IDLE) { - printf("\tFirmware halted. "); + printf("\tFirmware halted. \n"); } }