Skip to content

Commit

Permalink
Make all example structs "packed"
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerBroker2 committed Oct 26, 2022
1 parent 020baf3 commit a808126
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/i2c_rx_data/i2c_rx_data.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

I2CTransfer myTransfer;

struct STRUCT {
struct __attribute__((packed)) STRUCT {
char z;
float y;
} testStruct;
Expand Down
2 changes: 1 addition & 1 deletion examples/i2c_rx_datum/i2c_rx_datum.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

I2CTransfer myTransfer;

struct STRUCT {
struct __attribute__((packed)) STRUCT {
char z;
float y;
} testStruct;
Expand Down
2 changes: 1 addition & 1 deletion examples/i2c_tx_data/i2c_tx_data.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

I2CTransfer myTransfer;

struct STRUCT {
struct __attribute__((packed)) STRUCT {
char z;
float y;
} testStruct;
Expand Down
2 changes: 1 addition & 1 deletion examples/i2c_tx_datum/i2c_tx_datum.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

I2CTransfer myTransfer;

struct STRUCT {
struct __attribute__((packed)) STRUCT {
char z;
float y;
} testStruct;
Expand Down
2 changes: 1 addition & 1 deletion examples/spi_rx_data/spi_rx_data.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

SPITransfer myTransfer;

struct STRUCT {
struct __attribute__((packed)) STRUCT {
char z;
float y;
} testStruct;
Expand Down
2 changes: 1 addition & 1 deletion examples/spi_rx_datum/spi_rx_datum.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

SPITransfer myTransfer;

struct STRUCT {
struct __attribute__((packed)) STRUCT {
char z;
float y;
} testStruct;
Expand Down
2 changes: 1 addition & 1 deletion examples/spi_tx_data/spi_tx_data.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

SPITransfer myTransfer;

struct STRUCT {
struct __attribute__((packed)) STRUCT {
char z;
float y;
} testStruct;
Expand Down
2 changes: 1 addition & 1 deletion examples/spi_tx_datum/spi_tx_datum.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

SPITransfer myTransfer;

struct STRUCT {
struct __attribute__((packed)) STRUCT {
char z;
float y;
} testStruct;
Expand Down
2 changes: 1 addition & 1 deletion examples/uart_rx_data/uart_rx_data.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

SerialTransfer myTransfer;

struct STRUCT {
struct __attribute__((packed)) STRUCT {
char z;
float y;
} testStruct;
Expand Down
2 changes: 1 addition & 1 deletion examples/uart_rx_datum/uart_rx_datum.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

SerialTransfer myTransfer;

struct STRUCT {
struct __attribute__((packed)) STRUCT {
char z;
float y;
} testStruct;
Expand Down
2 changes: 1 addition & 1 deletion examples/uart_tx_data/uart_tx_data.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

SerialTransfer myTransfer;

struct STRUCT {
struct __attribute__((packed)) STRUCT {
char z;
float y;
} testStruct;
Expand Down
2 changes: 1 addition & 1 deletion examples/uart_tx_datum/uart_tx_datum.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

SerialTransfer myTransfer;

struct STRUCT {
struct __attribute__((packed)) STRUCT {
char z;
float y;
} testStruct;
Expand Down

0 comments on commit a808126

Please sign in to comment.