Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:03
  • 00:03
    earlephilhower synchronize #7204
  • Apr 09 23:40
    earlephilhower labeled #7178
  • Apr 09 23:22
    earlephilhower opened #7204
  • Apr 09 22:09
    dok-net synchronize #6869
  • Apr 09 22:09
    dok-net synchronize #6833
  • Apr 09 22:08
    dok-net synchronize #6843
  • Apr 09 22:08
    dok-net synchronize #7040
  • Apr 09 22:07
  • Apr 09 21:57
    dok-net synchronize #6857
  • Apr 09 21:57
    dok-net synchronize #6918
  • Apr 09 21:56
    dok-net synchronize #6047
  • Apr 09 21:54
    dok-net synchronize #6902
  • Apr 09 21:54
    dok-net synchronize #6782
  • Apr 09 21:36
    dok-net synchronize #7148
  • Apr 09 21:16
    dok-net synchronize #7023
  • Apr 09 21:06
    dok-net synchronize #6918
  • Apr 09 20:44
    dok-net synchronize #7022
  • Apr 09 20:43
    dok-net synchronize #7022
  • Apr 09 17:37

    earlephilhower on master

    Fix for MD5 leak bug, issue #71… (compare)

Me No Dev
@me-no-dev

no need to set contentLength to UNKNOWN anymore if you send empty string in send()

that is no longer true

Clemens Kirchgatterer
@everslick
so I have to set it to UNKNOWN and send an "" (empty string) as the last chunk?
Me No Dev
@me-no-dev
yes
the empty string means the end of the page
else it will wait 2 seconds as usual
see the example in the PR
Clemens Kirchgatterer
@everslick
great. thank you very much
Me No Dev
@me-no-dev
thanbks for asking for it :D we should have added this long time ago
Mehrdad K
@mkeyno
hi @igrr are you there
is anyone hear
I really appreciated if any one could help me about the casting issue
virtual size_t fs::File::readBytes(char*, size_t) define in FS class of
I have problem to use readBytes for reading the byte type
f.readBytes( ((byte*)leds) + i, 144);
Mehrdad K
@mkeyno
where should I recasting the variable
Ivan Grokhotkov
@igrr
how is leds variable defined?
Mehrdad K
@mkeyno
this is object form fastLED lib CRGB leds[144];
consist of 3 byte R,G,B
Ivan Grokhotkov
@igrr
what is i?
Mehrdad K
@mkeyno
the location
actually this is the code line i += FILe.readBytes( ((byte*)leds) + i, (NUM_LEDS*3)-i);
it supposed to read one 144*3 byte of data from file and fed it to the LED array to display
the compiler says , I should casted to char
Ivan Grokhotkov
@igrr
can you please paste the actual error compiler produces?
Mehrdad K
@mkeyno
invalid conversion from 'byte {aka unsigned char}' to 'char*' [-fpermissive]
            i += FILe.readBytes( ((byte*)leds) + i, (NUM_LEDS*3)-i);
Ivan Grokhotkov
@igrr
okay
Mehrdad K
@mkeyno
should I override it
Ivan Grokhotkov
@igrr
so you have found the declaration of readBytes function, right?
virtual size_t fs::File::readBytes(char*, size_t)
Mehrdad K
@mkeyno
yes
Ivan Grokhotkov
@igrr
what type does it take as its first argument?
Mehrdad K
@mkeyno
I need byte for each R, G,B color
Ivan Grokhotkov
@igrr
what type does readBytes function take as its first argument?
Mehrdad K
@mkeyno
GRGB type , this is object from fastLED repo
Ivan Grokhotkov
@igrr
incorrect :)
look at readBytes function prototype again
Mehrdad K
@mkeyno
I know , but it work with char , and used many times in fastLED to read bytes
I don't know how but its work if casted to char
Ivan Grokhotkov
@igrr
so which type do you need to pass into this function if it takes char*?
Mehrdad K
@mkeyno
byte*
FILe.readBytes( ((char*)leds) + i, (NUM_LEDS*3)-i); this worked
Ivan Grokhotkov
@igrr
nope, look at the function prototype again :)
virtual size_t fs::File::readBytes(char*, size_t)
which type does it take?
Mehrdad K
@mkeyno
whereas define CRGB leds[NUM_LEDS];
Ivan Grokhotkov
@igrr
virtual size_t fs::File::readBytes(char*, size_t)
it takes char*
so you should cast to char*
Mehrdad K
@mkeyno
can I override it to byte
Ivan Grokhotkov
@igrr
no
just cast to char*
Mehrdad K
@mkeyno
but people use this function in FastLED repo to read bytes of data and fed it to LED.show() function