mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-17 17:12:39 -05:00
Minor binsize savings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25588 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
268c6d1e7f
commit
f6cecfd91b
2 changed files with 13 additions and 23 deletions
|
|
@ -117,17 +117,11 @@ unsigned int battery_adc_voltage(void)
|
|||
#ifdef HAVE_ACCESSORY_SUPPLY
|
||||
void accessory_supply_set(bool enable)
|
||||
{
|
||||
if (enable)
|
||||
{
|
||||
/* Accessory voltage supply on */
|
||||
pcf50605_write(PCF5060X_D2REGC1, 0xf8); /* 3.3V ON */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Accessory voltage supply off */
|
||||
pcf50605_write(PCF5060X_D2REGC1, 0x18); /* OFF */
|
||||
}
|
||||
|
||||
/* Set accessory power supply to 3.3V, otherwise switch it off. */
|
||||
unsigned char value = enable ? 0xf8 : 0x18;
|
||||
|
||||
/* Write to register. */
|
||||
pcf50605_write(PCF5060X_D2REGC1, value);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue