Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void displayFSM()
brightLevel = mapLDR(MIN_BRIGHT); // not max since anlog is inverted
#endif

#if HAS_LDR
#if HAS_THERMISTOR
if ( readyRead & _1hzToggle ){
actualTemp = mapTemp(getADCResult(ADC_TEMP));
readyRead = FALSE;
Expand Down
2 changes: 1 addition & 1 deletion src/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
#if PROC_IS_15W408AS || PROC_IS_15W404AS
#define CE_HI P5 |= 0b00010000; // P5.4 DS1302 pin 5 set
#define CE_LO P5 &= 0b11101111; // unset
#define IO_LO P5 &= 0b11011111; // P5.1 DS1302 pin 6
#define IO_LO P5 &= 0b11011111; // P5.5 DS1302 pin 6
#define IO_WR P5|=((W_Byte&0x01)<<5) // write I/O pin
#define IO_RD (P5 & 0b00100000)>>5 // read I/O pin
#define SCLK P3_2 // P3.2 DS1302 pin 7
Expand Down