Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjusted some variables and function prototypes to use 'bool' #316

Merged
merged 3 commits into from
Dec 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions USER_MANUAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,8 @@ LDPC | Low Density Parity Check Codes - a family of powerful FEC codes
3. Enhancements:
* Add 2020B to multi-RX feature to enable RX and TX without restarting session. (PR #312)
* Hide modes not on the SM1000 by default. (PR #313)
4. Code Cleanup:
* Adjusted function prototypes to use bool instead of int. (PR #316)

## V1.8.5 December 2022

Expand Down
4 changes: 2 additions & 2 deletions src/freedv_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ void FreeDVInterface::stop()
rxMode_ = 0;
}

void FreeDVInterface::setRunTimeOptions(int clip, int bpf)
void FreeDVInterface::setRunTimeOptions(bool clip, bool bpf)
{
for (auto& dv : dvObjects_)
{
Expand Down Expand Up @@ -493,7 +493,7 @@ int FreeDVInterface::getRxSpeechSampleRate() const
return result;
}

void FreeDVInterface::setSquelch(int enable, float level)
void FreeDVInterface::setSquelch(bool enable, float level)
{
int index = 0;

Expand Down
4 changes: 2 additions & 2 deletions src/freedv_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class FreeDVInterface
int getTxMode() const { return txMode_; }
bool isRunning() const { return dvObjects_.size() > 0; }
bool isModeActive(int mode) const { return std::find(enabledModes_.begin(), enabledModes_.end(), mode) != enabledModes_.end(); }
void setRunTimeOptions(int clip, int bpf);
void setRunTimeOptions(bool clip, bool bpf);

const char* getCurrentModeStr() const;
bool usingTestFrames() const;
Expand Down Expand Up @@ -95,7 +95,7 @@ class FreeDVInterface

void setTextVaricodeNum(int num);

void setSquelch(int enable, float level);
void setSquelch(bool enable, float level);

void setCarrierAmplitude(int c, float amp);

Expand Down