mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
CLCD: fix possible compile error
error: declaration of 'power' shadows a global declaration [-Werror=shadow]
This commit is contained in:
@@ -692,14 +692,14 @@ void CLCD::count_down() {
|
||||
}
|
||||
}
|
||||
|
||||
void CLCD::setlcdparameter(int dimm, const int power)
|
||||
void CLCD::setlcdparameter(int dimm, const int _power)
|
||||
{
|
||||
if(dimm < 0)
|
||||
dimm = 0;
|
||||
else if(dimm > 15)
|
||||
dimm = 15;
|
||||
|
||||
if(!power)
|
||||
if(!_power)
|
||||
dimm = 0;
|
||||
|
||||
if(brightness == dimm)
|
||||
|
Reference in New Issue
Block a user