Skip to content

Commit dfdd2a5

Browse files
Merge pull request #110 from NonPIayerCharacter/w800cfgfix
w600/w800 no longer use v3 config
2 parents 4924934 + 5325213 commit dfdd2a5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

BK7231Flasher/Misc/OBKConfig.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -580,11 +580,8 @@ public static bool isValid(byte [] raw, int extraOfs = 0, BKType type = BKType.I
580580
case BKType.LN8825:
581581
case BKType.BL602:
582582
case BKType.RDA5981:
583-
crc = CRC.Tiny_CRC8_unsigned(raw, extraOfs + 4, useLen - 4);
584-
break;
585583
case BKType.W600:
586584
case BKType.W800:
587-
useLen = getLenForVersion(3);
588585
crc = CRC.Tiny_CRC8_unsigned(raw, extraOfs + 4, useLen - 4);
589586
break;
590587
default:
@@ -621,11 +618,8 @@ public void saveConfig(BKType type = BKType.Invalid)
621618
case BKType.LN8825:
622619
case BKType.BL602:
623620
case BKType.RDA5981:
624-
crc = CRC.Tiny_CRC8_unsigned(raw, 4, realLen - 4);
625-
break;
626621
case BKType.W600:
627622
case BKType.W800:
628-
realLen = getLenForVersion(3);
629623
crc = CRC.Tiny_CRC8_unsigned(raw, 4, realLen - 4);
630624
break;
631625
default:

0 commit comments

Comments
 (0)