-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
First Rémi, thank you for your hard work. I ported telemetry (plain C) to the K22FN512 (a cortex M4 cpu) platform on the K22F freedom board. And only recently I'm in the need of sending data from the host to the embedded.
I'm facing the issue that my variable is not updated even thou that I use update_telemetry(). I'm sure the issue is with:
void update_telemetry()
{
// If user forgot to define transport by calling init_telemetry, abort
if(!transportPtr)
return;
uint32_t amount = transportPtr->readable();
uint32_t i = 0 ;
for(i = 0 ; i < amount ; i++)
{
uint8_t c;
transportPtr->read(&c,1);
feed(c);
}
}
The issue is that I don't have any "serial.readable();" And place the following in the driver:
*/ int32_t readable() {
uint32_t amount = 0;
return amount;
}
Now my question is, amount has to be a single 8 bit char (amount = 1)or a whole message (amount = N)? That is the main difficult to porting since I do not know wow the real function "readable" works..
warmest regards
Metadata
Metadata
Assignees
Labels
No labels