Skip to content

Commit

Permalink
Fixed issue with setting date over Bluetooth
Browse files Browse the repository at this point in the history
  • Loading branch information
lexus2k committed Sep 24, 2017
1 parent f592ca4 commit 4ad3753
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion doxygen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "Nixie Library"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 1.1.2
PROJECT_NUMBER = 1.1.3

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
2 changes: 1 addition & 1 deletion examples/nixie_clock_in14_v1/clock_bluetooth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void bluetoothCheck()
g_btSerial.write("son,soff - scroll test\n");
g_btSerial.write("d|r|n - get/set light sensor settings\n");
g_btSerial.write("tHH:MM:SS - set time\n");
g_btSerial.write("tdYYYY/MM/DD - set date\n");
g_btSerial.write("tdYY/MM/DD - set date\n");
g_btSerial.write("c - set night highlight 0-9\n");
break;
}
Expand Down
8 changes: 3 additions & 5 deletions examples/nixie_clock_in14_v1/clock_diorama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,14 @@ void enableDioramaLights(bool enable)

static inline bool inDoorLightsTime()
{
return g_sensor.brightness() >= INDOOR_LIGHT_THRESHOLD_LOW
&& g_sensor.brightness() <= INDOOR_LIGHT_THRESHOLD_HIGH
return (g_sensor.brightness() >= INDOOR_LIGHT_THRESHOLD_LOW)
&& ((g_sensor.brightness() <= INDOOR_LIGHT_THRESHOLD_HIGH) || (g_rtc.m_hours>=0x21))
&& indoorLightEnable;
}

static inline bool notInDoorLightsTime()
{
return g_sensor.brightness() < INDOOR_LIGHT_THRESHOLD_LOW
|| g_sensor.brightness() > INDOOR_LIGHT_THRESHOLD_HIGH
|| !indoorLightEnable;
return !inDoorLightsTime();
}


Expand Down
4 changes: 2 additions & 2 deletions examples/nixie_clock_in14_v1/clock_fine_tuning.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
/** Number of period before diorama lights power off */
#define DIORAMA_LIGHTS_OFF_TIMEOUT_PERIODS 10
/** Minimum brightness of Outdoor lights (0-32) */
#define OUTDOOR_LIGHT_MIN_BRIGHTNESS 12
#define OUTDOOR_LIGHT_MIN_BRIGHTNESS 16
/** Maximum brightness of Outdoor lights (0-32) */
#define OUTDOOR_LIGHT_MAX_BRIGHTNESS 32
#define OUTDOOR_LIGHT_MAX_BRIGHTNESS 28

#define OUTDOOR_LIGHT_THRESHOLD_LOW (6)
#define OUTDOOR_LIGHT_THRESHOLD_HIGH (13)
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=NixieLibrary
version=1.1.2
version=1.1.3
author=Alexey Dynda
maintainer=Alexey Dynda <[email protected]>
sentence=Nixie Library is intended for Nixie Clock software development.
Expand Down

0 comments on commit 4ad3753

Please sign in to comment.