Skip to content

Commit

Permalink
Update Failure msg if FARM TimeSeries - Feature register 0x3 not supp…
Browse files Browse the repository at this point in the history
…orted on drive.
  • Loading branch information
shriya-deshmukh committed May 20, 2024
1 parent 62ee3c8 commit 9f9380d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/logs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,8 @@ int get_ATA_Log(tDevice *device, uint8_t logAddress, char *logName, char *fileEx
}
}
//loop and read each page or set of pages, then save to a file
if (SUCCESS == send_ATA_Read_Log_Ext_Cmd(device, logAddress, currentPage, &logBuffer[currentPage * LEGACY_DRIVE_SEC_SIZE], pagesToReadNow * LEGACY_DRIVE_SEC_SIZE, featureRegister))
ret = send_ATA_Read_Log_Ext_Cmd(device, logAddress, currentPage, &logBuffer[currentPage * LEGACY_DRIVE_SEC_SIZE], pagesToReadNow * LEGACY_DRIVE_SEC_SIZE, featureRegister);
if (ret == SUCCESS)
{
if (device->deviceVerbosity > VERBOSITY_QUIET)
{
Expand Down Expand Up @@ -1547,7 +1548,8 @@ int get_ATA_Log(tDevice *device, uint8_t logAddress, char *logName, char *fileEx
}
else
{
ret = FAILURE;
if (ret != NOT_SUPPORTED)
ret = FAILURE;
logSize = 0;
logFromGPL = true;
break;
Expand Down

0 comments on commit 9f9380d

Please sign in to comment.