mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-12 01:25:59 +00:00
Some debugging
This commit is contained in:
parent
fa9a75c0db
commit
ec945a7ca1
@ -3,6 +3,7 @@
|
||||
#ifdef STA_PLATFORM_ARDUINO
|
||||
|
||||
#include <sta/devices/arduino/hal.hpp>
|
||||
#include <sta/debug/debug.hpp>
|
||||
|
||||
|
||||
namespace sta
|
||||
@ -44,7 +45,9 @@ namespace sta
|
||||
|
||||
void ArduinoI2C::receive(uint8_t * buffer, size_t size)
|
||||
{
|
||||
size_t count = Wire.requestFrom((uint8_t)address_, (uint8_t)size, (uint8_t)1);
|
||||
size_t count = Wire.requestFrom((uint8_t)address_, (uint8_t)size);
|
||||
|
||||
STA_DEBUG_PRINTF("Receiving %d bytes", count);
|
||||
|
||||
for (size_t i = 0; i < min(size, count); ++i)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user