Skip to content

Commit

Permalink
Fix to get i2c working on ATmega328P
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippWendel committed Apr 25, 2023
1 parent 5fbade3 commit 2852e56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/experimental/i2c.zig
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ pub fn I2CController(comptime index: usize, comptime pins: Pins) type {
const Self = @This();

internal: SystemI2CController,
variable_so_struct_is_not_of_size_zero_and_mcu_hangs_when_returning_struct_on_avr: if (std.mem.eql(u8, cfg.chip_name, "ATmega328P")) u8 else void = undefined,

pub fn init(config: Config) InitError!Self {
return Self{
Expand Down

0 comments on commit 2852e56

Please sign in to comment.