Menu

#59 PWM name collission

Done
None
High
Patch
2014-04-21
2014-02-08
Tieske
No

Not sure how python handles this (maybe automatic?), but I ran into it while adding it to my Lua binding;

The function GPIO.PWM(pin, freq) has a naming conflict with the new constant return value for GPIO.function(pin), which could be GPIO.PWM.

In my case the function PWM was overwritten by the constant, hence inaccessible.

Discussion

  • Tieske

    Tieske - 2014-02-08

    fwiw; I renamed the function PWM to 'newPWM' as it returns a new instance.

     
  • Ben Croston

    Ben Croston - 2014-02-21
    • status: New --> Accepted
    • assigned_to: Ben Croston
     
  • Ben Croston

    Ben Croston - 2014-04-16

    Fix will be in release 0.5.5

     
  • Ben Croston

    Ben Croston - 2014-04-16
    • status: Accepted --> Started
     
  • Ben Croston

    Ben Croston - 2014-04-21

    Added constant HARD_PWM for gpio_function()
    In release 0.5.5 - issue closed

     
  • Ben Croston

    Ben Croston - 2014-04-21
    • status: Started --> Done
     

Log in to post a comment.

MongoDB Logo MongoDB