Skip to content

Commit

Permalink
detectChannels: fix stupid typo that would cause the boards manufactu…
Browse files Browse the repository at this point in the history
…rer ID to always be overwritten
  • Loading branch information
LIV2 committed Dec 19, 2023
1 parent 7e25317 commit ded659f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ static void Cleanup(struct DeviceBase *dev) {
* @returns number of channels
*/
static BYTE detectChannels(struct ConfigDev *cd) {
if ((cd->cd_Rom.er_Manufacturer = OAHR_MANUF_ID) && (cd->cd_Rom.er_Product == RIPPLE_PROD_ID))
if ((cd->cd_Rom.er_Manufacturer == OAHR_MANUF_ID) && (cd->cd_Rom.er_Product == RIPPLE_PROD_ID))
return 2;

UBYTE *drvsel = cd->cd_BoardAddr + CHANNEL_0 + ata_reg_devHead;
Expand Down

0 comments on commit ded659f

Please sign in to comment.