mirror of
https://github.com/EnhancedRadioDevices/DDS
synced 2023-10-28 07:08:12 +00:00
Remove default argument from function definition
Default arguments should only be specified in function prototypes, not in the function definition. This caused compilation of the library to fail for Arduino AVR Boards 1.6.11 or earlier. It does not cause compilation to fail for Arduino AVR Boards 1.6.12 and newer only because the -fpermissive compiler flag was added, which downgrades this to an error. It has been stated that flag may be removed in the future:
06868f4cd3
So this change is necessary for both backwards and forwards compatibility. Even with current versions it fixes a warning, which is always wise to do.
This commit is contained in:
@@ -45,7 +45,7 @@ void DDS::stop() {
|
||||
TCCR2B = 0;
|
||||
}
|
||||
|
||||
void DDS::startPhaseAccumulator(bool use_only_timer_2 = false){
|
||||
void DDS::startPhaseAccumulator(bool use_only_timer_2){
|
||||
timer2only = use_only_timer_2;
|
||||
|
||||
if(timer2only){
|
||||
|
||||
Reference in New Issue
Block a user