Home Forums EasyTransfer Library Support Forum Teensy 3.2 to minimosd (arduino nano)

  • This topic has 1 reply, 1 voice, and was last updated 8 years ago by Anonymous.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3518
    Anonymous
    Inactive

    teensy to nano serial transfer works for

    struct DATA
    {
    byte var1;
    byte var2
    };

    But not if I try with a float:

    struct DATA
    {
    byte var1;
    byte var2

    float var3;
    };

    sizeof(afloat); on both devices is 4.

    If I try with a float in both structs my Arduino nano ETIn.receiveData() is never true.

    Any idea what may be the problem here?

    Thanks.

     

     

    #3520
    Anonymous
    Inactive

    I am sending float as 4 bytes now which will do.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.