Skip to content

fastspi.h uses wrong variable for spi1 #1410

Closed

Description

@anthonyrubalcaba

/FastLED/src/fastspi.h >> line 91,92:

template<uint32_t SPI_SPEED>
class SPIOutput<SPI1_DATA, SPI_CLOCK, SPI_SPEED> : public Teensy4HardwareSPIOutput<SPI1_DATA, SPI1_CLOCK, SPI_SPEED, SPI1, 1> {};

The SPI_CLOCK should be SPI1_CLOCK

Corrected:

template<uint32_t SPI_SPEED>
class SPIOutput<SPI1_DATA, SPI1_CLOCK, SPI_SPEED> : public Teensy4HardwareSPIOutput<SPI1_DATA, SPI1_CLOCK, SPI_SPEED, SPI1, 1> {};

This bug was discovered by user AntiDysentery
in this post:
https://forum.pjrc.com/threads/70671-Teensy-4-1-with-FastLed-No-Hardware-SPI

Activity

  1. zackees commented on Jul 18, 2022

    @zackees
    Member

    Do you know how to create a pull request for this bug fix?

    Fork -> Create branch -> do changes -> git commit / push and follow the instructions that appear. Your git should now contain a pull request. Please mention this bug URL and github will link them automatically.

  2. ssilverman commented on Jul 22, 2022

    @ssilverman
    Contributor

    I made a pull request a couple of days ago that fixes this: #1413.

  3. zackees commented on Jul 22, 2022

    @zackees
    Member

    I'd ok it if I had ownership, but I don't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions