Skip to content

implementation of detach() is missing for __arm__ / Teensyduino #3

@mirdej

Description

@mirdej

Description

Tried to compile code that uses PWMServo.detach() on Teensy 3.2 and I get a linker error:
"undefined reference to `PWMServo::detach()'"

implementation is missing in PWMServo.cpp

Steps To Reproduce Problem

Compile code below for Teensy 3.x

Hardware & Software

Board: Teensy 3.2
Arduino IDE version: 1.8.5
Teensyduino version : 1.45
Operating system & version: MacOS Mojave

Arduino Sketch

#include <PWMServo.h>

PWMServo	myservo;

void setup(){
  myservo.attach(9);
  myservo.detach();
}

void loop(){
}

### Errors or Incorrect Output
"undefined reference to `PWMServo::detach()'"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions