Skip to content

Commit

Permalink
[SensorBHI260AP] Fix BoschSensorInfo print format
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Jan 28, 2025
1 parent 124646a commit ca7c6b6
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/bosch/BoschSensorInfo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down Expand Up @@ -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");
}
}

Expand Down

0 comments on commit ca7c6b6

Please sign in to comment.