chore: remove awful ptr casts in backup.zig and bios.zig

This commit is contained in:
2022-05-27 20:24:09 -03:00
parent d4bc1f2cd0
commit 517ed7a835
5 changed files with 13 additions and 23 deletions

View File

@@ -65,7 +65,7 @@ pub fn deinit(self: Self) void {
self.backup.deinit();
}
pub fn read(self: *const Self, comptime T: type, address: u32) T {
pub fn read(self: *Self, comptime T: type, address: u32) T {
const addr = address & 0x1FF_FFFF;
if (self.backup.kind == .Eeprom) {