Sfoglia il codice sorgente

Update Stream.cpp

main
Frank 5 anni fa
parent
commit
be0b44bceb
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      teensy3/Stream.cpp

+ 2
- 0
teensy3/Stream.cpp Vedi File

@@ -218,6 +218,7 @@ float Stream::parseFloat(char skipChar){
//
size_t Stream::readBytes(char *buffer, size_t length)
{
if (buffer == nullptr) return 0;
size_t count = 0;
while (count < length) {
int c = timedRead();
@@ -238,6 +239,7 @@ size_t Stream::readBytes(char *buffer, size_t length)

size_t Stream::readBytesUntil(char terminator, char *buffer, size_t length)
{
if (buffer == nullptr) return 0;
if (length < 1) return 0;
length--;
size_t index = 0;

Loading…
Annulla
Salva