Skip to content

Commit

Permalink
Update SpdReaderWriter.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
1a2m3 authored Dec 7, 2021
1 parent c851b2e commit d36895d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions firmware/SpdReaderWriter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,12 @@ bool getRswp(uint8_t block) {
// Clears reversible software write protection
bool clearRswp() {

if (setHighVoltage(ON)) {
setConfigPin(SA1_EN, ON); // Required for pre-DDR4
if (!ddr4Detect()) {
// Required for pre-DDR4
setConfigPin(SA1_EN, ON);
}

if (setHighVoltage(ON)) {
bool result = probeDeviceTypeId(CWP);
resetPins();

Expand Down

0 comments on commit d36895d

Please sign in to comment.