Skip to content

Commit

Permalink
Merge pull request martijnvanbrummelen#643 from PartialVolume/Fix_san…
Browse files Browse the repository at this point in the history
…disk_endian_on_some_chipsets

Fix model name Endian for Sandisk-SunDisk drives
  • Loading branch information
PartialVolume authored Feb 9, 2025
2 parents 051e1aa + b21860d commit ddb0329
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/miscellaneous.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,22 @@ void fix_endian_model_names( char* model )
{
swap_endian_flag = 1;
}
else
{
/* Sundisk - Sandisk SSD from Sun AXI */
if( !( strncmp( model_lower_case, "usdnsi k", 8 ) ) )
{
swap_endian_flag = 1;
}
else
{
/* Sandisk */
if( !( strncmp( model_lower_case, "asdnsi k", 8 ) ) )
{
swap_endian_flag = 1;
}
}
}
}
}
}
Expand Down

0 comments on commit ddb0329

Please sign in to comment.