diff --git a/firmware/target/arm/s5l8700/power-meizu.c b/firmware/target/arm/s5l8700/power-meizu.c index 516bfc976d..49458e50ba 100644 --- a/firmware/target/arm/s5l8700/power-meizu.c +++ b/firmware/target/arm/s5l8700/power-meizu.c @@ -56,7 +56,7 @@ void power_init(void) unsigned int power_input_status(void) { /* check VBUS in the USB2.0 function controller */ - if (TR & (1 << 15)) { + if (USB_TR & (1 << 15)) { return POWER_INPUT_USB; }