mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-19 03:13:14 +00:00
Fixes
This commit is contained in:
parent
623f543a2c
commit
54e8afae71
@ -3,6 +3,7 @@
|
|||||||
#include <Tactility/hal/encoder/EncoderDevice.h>
|
#include <Tactility/hal/encoder/EncoderDevice.h>
|
||||||
#include <Tactility/hal/gpio/Gpio.h>
|
#include <Tactility/hal/gpio/Gpio.h>
|
||||||
#include <Tactility/TactilityCore.h>
|
#include <Tactility/TactilityCore.h>
|
||||||
|
#include <Tactility/Thread.h>
|
||||||
|
|
||||||
class ButtonControl final : public tt::hal::encoder::EncoderDevice {
|
class ButtonControl final : public tt::hal::encoder::EncoderDevice {
|
||||||
|
|
||||||
|
|||||||
@ -87,7 +87,7 @@ std::unique_ptr<char[]> receiveByteArray(httpd_req_t* request, size_t length, si
|
|||||||
size_t read_size = length - bytesRead;
|
size_t read_size = length - bytesRead;
|
||||||
size_t bytes_received = httpd_req_recv(request, buffer + bytesRead, read_size);
|
size_t bytes_received = httpd_req_recv(request, buffer + bytesRead, read_size);
|
||||||
if (bytes_received <= 0) {
|
if (bytes_received <= 0) {
|
||||||
LOGGER.warn("Received {} / {}", bytesRead + bytes_received, length);
|
LOGGER.warn("Received error {} after reading {}/{} bytes", bytes_received, bytesRead, length);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user