Subversion Repositories freemyipod

Rev

Rev 847 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 847 Rev 878
Line 54... Line 54...
54
    return vbus_state();
54
    return vbus_state();
55
}
55
}
56
 
56
 
57
bool vbus_state(void)
57
bool vbus_state(void)
58
{
58
{
-
 
59
    return true;
59
    if (TIMEOUT_EXPIRED(power_last_update, 200000))
60
    if (TIMEOUT_EXPIRED(power_last_update, 200000))
60
    {
61
    {
61
        power_last_update = USEC_TIMER;
62
        power_last_update = USEC_TIMER;
62
        power_last_state = !!(i2c_recvbyte(0, 0xe6, 4) & 0x40);
63
        power_last_state = !!(i2c_recvbyte(0, 0xe6, 4) & 0x40);
63
    }
64
    }