Skip to content

Commit

Permalink
Review implemented signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Jun 3, 2024
1 parent 4be3ff8 commit efc1425
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/WebSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ size_t WebSerialClass::write(uint8_t m) {
}

// Println / Printf / Write func
size_t WebSerialClass::write(uint8_t* buffer, size_t size) {
size_t WebSerialClass::write(const uint8_t* buffer, size_t size) {
loop();
_wait_for_print_mutex();
_print_buffer_mutex = true;
Expand Down
4 changes: 2 additions & 2 deletions src/WebSerial.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class WebSerialClass : public Print {
inline void setAuthentication(const char* username, const char* password) { setAuthentication(String(username), String(password)); }
void setAuthentication(const String& username, const String& password);
void onMessage(WSLMessageHandler recv);
size_t write(uint8_t);
size_t write(uint8_t* buffer, size_t size);
size_t write(uint8_t) override;
size_t write(const uint8_t* buffer, size_t size) override;
void loop();

private:
Expand Down

0 comments on commit efc1425

Please sign in to comment.