>>727
改変個所は

if (bootmode == "charger") { →  if (bootmode == "charger" || charging_mode_booting()) {

と、charging_mode_booting()関数の中身の追加、であってますかね?