Skip to content

comparison between distinct pointer types 'NSFastLED::FastPin<9u>::port_ptr_t {aka volatile unsigned char*}' and 'NSFastLED::_ARMPIN<10u, 5u, 32ul, NSFastLED::__gen_struct_GPIOC>::port_ptr_t {aka volatile long unsigned int*}' lacks a cast [-fpermissive] #10

@fotoKrille

Description

@fotoKrille

Veryfing code using this library in Particle Build fails with this error:

FastLED/fastspi_bitbang.h:316:32: error: comparison between distinct pointer types 'NSFastLED::FastPin<9u>::port_ptr_t {aka volatile unsigned char*}' and 'NSFastLED::_ARMPIN<10u, 5u, 32ul, NSFastLED::__gen_struct_GPIOC>::port_ptr_t {aka volatile long unsigned int*}' lacks a cast [-fpermissive]
   if(FastPin<DATA_PIN>::port() != FastPin<CLOCK_PIN>::port()) {
                                ^

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