fix compile error , no vbat nor mag enabled