firmware: fix various compiler warnings
2 files changed