Coder Social home page Coder Social logo

Set Filters and yesno arg about sa818 HOT 37 CLOSED

0x9900 avatar 0x9900 commented on June 26, 2024
Set Filters and yesno arg

from sa818.

Comments (37)

0x9900 avatar 0x9900 commented on June 26, 2024

Congratulations, you found a bug.
I pushed a new version. The message should be more clear now.
Thanks
-fred-

from sa818.

sp2ong avatar sp2ong commented on June 26, 2024

OK nice and thank you very much

from sa818.

sp2ong avatar sp2ong commented on June 26, 2024

Hi
Does it look like I am wrong in my suggestion ? Today I turn on DEBUG mode and I see that

a818 --debug filters --emphasis yes --highpass yes --lowpass yes
SA818: DEBUG: Namespace(debug=True, emphasis=True, func='filters', highpass=True, lowpass=True, port=None)
SA818: DEBUG: Sending: AT+SETFILTER=0,0,0

so AT+SETFILTER=0,0,0 it is mean that filters are ENABLED

sa818 --debug filters --emphasis no --highpass no --lowpass no
SA818: DEBUG: Namespace(debug=True, emphasis=False, func='filters', highpass=False, lowpass=False, port=None)
SA818: DEBUG: Sending: AT+SETFILTER=1,1,1

so value 1 corresponds to "bypass" so isn't it enabled???

Perhaps I misunderstand the term "bypass"

in manual SA818 is for example for pre/de emphasis:

PRE/DE-EMPH:
1: emphasis bypass
0: emphasis normal

from sa818.

sp2ong avatar sp2ong commented on June 26, 2024

I suppose it is that you are using negation on YES/NO value in cmd

cmd = "{}={},{},{}".format(self.FILTER, int(not opts.emphasis),
int(not opts.highpass), int(not opts.lowpass))

I don't know why is used negation input value if
in "def yesno()" YES is equivalent to 1

def yesno(parg):
yes_strings = ["y", "yes", "true", "1", "on"]
no_strings = ["n", "no", "false", "0", "off"]

from sa818.

0x9900 avatar 0x9900 commented on June 26, 2024

I have fixed that in the new version

from sa818.

sp2ong avatar sp2ong commented on June 26, 2024

Thank you very much

73 Waldek SP2ONG

from sa818.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.