Skip to content

Commit 108ebe2

Browse files
committed
Merge branch 'feature/15' into develop
2 parents 429c954 + 6302a22 commit 108ebe2

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ The issue #16 changes its public member function. But it is referred internally
88
- [Issue #13](https://github.com/suikan4github/rpp_driver/issues/13) Exclude Mock definition from the GCov coverage.
99
### Changed
1010
- [Issue #10](https://github.com/suikan4github/rpp_driver/issues/10) Cover APIs of the Raspberry Pi Pico SDK.
11-
- [Issue #16](https://github.com/suikan4github/rpp_driver/issues/16) Change the member function name from ConfigureSRC() to ConfigureSrc().
11+
- [Issue #15](https://github.com/suikan4github/rpp_driver/issues/15) Remove the redundant parameter check code from ConfigureSRC()
12+
- [Issue #16](https://github.com/suikan4github/rpp_driver/issues/16) Change the member function name from ConfigureSRC() to ConfigureSrc().
1213
### Deprecated
1314
### Removed
1415
### Fixed

src/codec/adau1361lower.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -512,10 +512,6 @@ void ::rpp_driver::Adau1361Lower::InitializeRegisters() {
512512

513513
// Set the converter clock.
514514
void ::rpp_driver::Adau1361Lower::ConfigureSrc(unsigned int fs) {
515-
assert((fs == 24000 || fs == 32000 || fs == 48000 || fs == 96000 ||
516-
fs == 22050 || fs == 44100 || fs == 88200) &&
517-
"Bad Fs");
518-
519515
switch (fs) {
520516
case 22050:
521517
case 24000: {
@@ -549,7 +545,7 @@ void ::rpp_driver::Adau1361Lower::ConfigureSrc(unsigned int fs) {
549545
break;
550546
}
551547
default:
552-
assert(false);
548+
assert(false && "Bad Fs");
553549
}
554550
}
555551

0 commit comments

Comments
 (0)