Closed MnlPhlp closed 1 month ago
this should also fix #42 and #48
@MnlPhlp Thank you for your suggestion and code.
I have waited for update releases of esp-idf-sys,esp-idf-hal before merging #43. But no new versions are released... It would certainly be practical to accept your workaround.
I will commit this PR after confirming it with my device.
Just FYI: A new version of esp-idf-hal was just released (0.44)
Similar to #43 this updates esp-idf-hal and also esp-idf-sys to the most recent version. Because the change in esp-idf-hal that makes Symbol copy is not yet published, this uses unsafe code as a workaround. The unsafe code just copies the bytes, so this should make no difference to Symbol being cloned/copy. Once a new esp-idf-hal version is out, the unsafe part can just be replaced by self.bit0 and self.bit1 again.