Merge branch 'test_invert'

This commit is contained in:
joan 2015-08-30 10:56:12 +01:00
commit 294eac0916
2 changed files with 2 additions and 2 deletions

View File

@ -3418,7 +3418,7 @@ class pi():
status = pi.bb_serial_invert(17, 1) status = pi.bb_serial_invert(17, 1)
... ...
""" """
return _u2i(_pigpio_command(self.sl, _PI_CMD_SLRI, user_gpio, invert, 0)) return _u2i(_pigpio_command(self.sl, _PI_CMD_SLRI, user_gpio, invert))
def custom_1(self, arg1=0, arg2=0, argx=[]): def custom_1(self, arg1=0, arg2=0, argx=[]):
""" """

2
x_pigs
View File

@ -49,7 +49,7 @@ s=$(pigs bs2 0)
if [[ $s = "" ]]; then echo "BS2 ok"; else echo "BS2 fail ($s)"; fi if [[ $s = "" ]]; then echo "BS2 ok"; else echo "BS2 fail ($s)"; fi
s=$(pigs h) s=$(pigs h)
if [[ ${#s} = 4263 ]]; then echo "HELP ok"; else echo "HELP fail (${#s})"; fi if [[ ${#s} = 4321 ]]; then echo "HELP ok"; else echo "HELP fail (${#s})"; fi
s=$(pigs hwver) s=$(pigs hwver)
if [[ $s -ne 0 ]]; then echo "HWVER ok"; else echo "HWVER fail ($s)"; fi if [[ $s -ne 0 ]]; then echo "HWVER ok"; else echo "HWVER fail ($s)"; fi