Many changes from 2018
[owSlave2.git] / DS2450_SHT2X_MAX44009 / DS2450_SHT2X_MAX44009.c
index 8f5d4f9..b5ed22b 100644 (file)
@@ -38,7 +38,7 @@
 #include <avr/wdt.h>\r
 #include <avr/sleep.h>\r
 #include <avr/pgmspace.h>\r
-#include "../common/I2C/USI_TWI_Master.h"\r
+#include "../common/I2C/TWI_Master.h"\r
 #include "../common/I2C/SHT2x.h"\r
 #include "../common/I2C/MAX44009.h"\r
 extern void OWINIT();\r
@@ -165,7 +165,7 @@ int main(void){
        \r
        gcontrol=1;\r
        \r
-       USI_TWI_Master_Initialise();\r
+       TWI_Master_Initialise();\r
        SHT2x_SoftReset();\r
        SHT2x_ReadUserRegister(userRegister);\r
        //(userRegister & ~SHT2x_RES_MASK) | SHT2x_RES_10_13BIT;\r
@@ -309,7 +309,7 @@ int main(void){
                        MCUCR|=(1<<SE);\r
                        MCUCR&=~(1<<SM1);\r
                }\r
-       //      asm("SLEEP");\r
+               asm("SLEEP");\r
    }\r
 \r
 \r