mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
CLCD: fix possible compile error
error: declaration of 'power' shadows a global declaration [-Werror=shadow]
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7490497b4e
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-10-29 (Sun, 29 Oct 2017)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -219,7 +219,7 @@ class CLCD
|
|||||||
int brightness;
|
int brightness;
|
||||||
unsigned int timeout_cnt;
|
unsigned int timeout_cnt;
|
||||||
unsigned int switch_name_time_cnt;
|
unsigned int switch_name_time_cnt;
|
||||||
void setlcdparameter(int dimm, int power);
|
void setlcdparameter(int dimm, int _power);
|
||||||
void count_down();
|
void count_down();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -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)
|
if(dimm < 0)
|
||||||
dimm = 0;
|
dimm = 0;
|
||||||
else if(dimm > 15)
|
else if(dimm > 15)
|
||||||
dimm = 15;
|
dimm = 15;
|
||||||
|
|
||||||
if(!power)
|
if(!_power)
|
||||||
dimm = 0;
|
dimm = 0;
|
||||||
|
|
||||||
if(brightness == dimm)
|
if(brightness == dimm)
|
||||||
|
Reference in New Issue
Block a user