summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/rtc/rtc_zenvisionm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/rtc/rtc_zenvisionm.c b/firmware/drivers/rtc/rtc_zenvisionm.c
index 77bf99088c..244d7557f0 100644
--- a/firmware/drivers/rtc/rtc_zenvisionm.c
+++ b/firmware/drivers/rtc/rtc_zenvisionm.c
@@ -25,15 +25,15 @@
unsigned char* rtc_send_command(short unk1, short unk2)
{
- unsigned char ret[12];
+ static unsigned char ret[12];
i2c_write(I2C_ADDRESS, (unk2 & 0xFF) | (unk << 8), 1);
i2c_read(I2C_ADDRESS, ret, 12);
return ret;
}
-
+
unsigned char* rtc_read(void)
{
- unsigned char ret[12];
+ static unsigned char ret[12];
i2c_read(I2C_ADDRESS, ret, 12);
return ret;
- } \ No newline at end of file
+ }