aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsonic74 <sonic74@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2011-12-09 03:16:17 +0000
committersonic74 <sonic74@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2011-12-09 03:16:17 +0000
commit2362171db08c991723ff6f8bb7107d134aa96182 (patch)
treeb5e88646a2b406b9c5e7f2f829d0f2c01ba4eebb
parent4b251367af14f98cef3bffd72ea1c8887d5eaac9 (diff)
downloadlcd4linux-2362171db08c991723ff6f8bb7107d134aa96182.tar.gz
Replaced parameter NoPowerCycle with PowerCycle
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1163 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
-rwxr-xr-xdrv_D4D.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drv_D4D.c b/drv_D4D.c
index c54d691..bb4bb7e 100755
--- a/drv_D4D.c
+++ b/drv_D4D.c
@@ -66,7 +66,7 @@
static char Name[] = "D4D";
char NAME_[20];
-int FONT = 1, MODE = 0, EXTRA = 0, SECTOR = 0, SECTOR_SIZE, NOPOWERCYCLE = 0;
+int FONT = 1, MODE = 0, EXTRA = 0, SECTOR = 0, SECTOR_SIZE, POWERCYCLE = 0;
/* int CONTRAST_; */
#define address_mmsb(variable) ((variable >> 24) & 0xFF)
@@ -600,8 +600,8 @@ static int drv_D4D_start(const char *section)
- cfg_number(section, "NoPowerCycle", 0, 0, 1, &NOPOWERCYCLE);
- if (!NOPOWERCYCLE) {
+ cfg_number(section, "PowerCycle", 0, 0, 1, &POWERCYCLE);
+ if (POWERCYCLE) {
char powerOn[] = { 'Y', 3, 1 };
drv_D4D_send(powerOn, sizeof(powerOn));
@@ -876,7 +876,7 @@ int drv_D4D_quit(const int quiet)
drv_generic_text_quit();
- if (!NOPOWERCYCLE) {
+ if (POWERCYCLE) {
drv_D4D_clear();
}
@@ -897,7 +897,7 @@ int drv_D4D_quit(const int quiet)
if (MODE)
drv_generic_graphic_quit();
- if (!NOPOWERCYCLE) {
+ if (POWERCYCLE) {
char powerDown[] = { 'Y', 3, 0 };
drv_D4D_send(powerDown, sizeof(powerDown));
}