forked from mirror/qmk_firmware
Add missing TWI_Init() call to the TemperatureDataLogger project. Make DUMMY_RTC compile time option the default, so that it works correctly on the USBKEY and other Atmel boards out of the box.
This commit is contained in:
@@ -7,11 +7,6 @@
|
||||
|
||||
#include "DS1307.h"
|
||||
|
||||
void DS1307_Init(void)
|
||||
{
|
||||
// Nothing to initialize
|
||||
}
|
||||
|
||||
void DS1307_SetDate(uint8_t Day, uint8_t Month, uint8_t Year)
|
||||
{
|
||||
#if defined(DUMMY_RTC)
|
||||
|
||||
@@ -100,8 +100,6 @@
|
||||
#define DS1307_ADDRESS_WRITE 0b11010000
|
||||
|
||||
/* Function Prototypes: */
|
||||
void DS1307_Init(void);
|
||||
|
||||
void DS1307_SetDate(uint8_t Day, uint8_t Month, uint8_t Year);
|
||||
void DS1307_SetTime(uint8_t Hour, uint8_t Minute, uint8_t Second);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user