[fix] Open file for writing
Merge branch 'driver2' of github.com:UrLab/hal into driver2
Merge branch 'driver2' of github.com:UrLab/hal into driver2