We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
statement is unreachable
1 parent 01bb1b9 commit e9ee890Copy full SHA for e9ee890
drivers/MbedCRC.h
@@ -514,11 +514,7 @@ class MbedCRC {
514
MBED_STATIC_ASSERT(width <= 32, "Max 32-bit CRC supported");
515
516
#if DEVICE_CRC
517
- if (POLY_32BIT_REV_ANSI == polynomial) {
518
- _crc_table = (uint32_t *)Table_CRC_32bit_Rev_ANSI;
519
- _mode = TABLE;
520
- return;
521
- }
+ if (POLY_32BIT_REV_ANSI != polynomial) {
522
crc_mbed_config_t config;
523
config.polynomial = polynomial;
524
config.width = width;
@@ -531,6 +527,7 @@ class MbedCRC {
531
527
_mode = HARDWARE;
532
528
return;
533
529
}
530
+ }
534
#endif
535
536
switch (polynomial) {
0 commit comments