We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3447722 commit ce59153Copy full SHA for ce59153
stm32-lcd-logo/Sources/Application/HAL/LTDC+Helpers.swift
@@ -188,6 +188,7 @@ extension LTDC {
188
// FIXME: Escaping a pointer like this is very unsafe.
189
// We get away with it because `pixelData` is a global let.
190
pixelData.span.withUnsafeBytes { buffer in
191
+ // swift-format-ignore: NeverForceUnwrap
192
let data = UInt32(UInt(bitPattern: buffer.baseAddress!))
193
self.layer[1].cfbar.modify { $0.raw.storage = data }
194
}
0 commit comments