mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-04-05 10:20:05 +00:00
Use time_t for RT_DEVICE_CTRL_RTC_GET_TIME RT_DEVICE_CTRL_RTC_SET_TIME
This commit is contained in:
@@ -82,7 +82,7 @@ static rt_err_t raspi_rtc_control(rt_device_t dev, int cmd, void *args)
|
||||
switch (cmd)
|
||||
{
|
||||
case RT_DEVICE_CTRL_RTC_GET_TIME:
|
||||
*(rt_uint32_t *)args = raspi_get_timestamp();
|
||||
*(time_t *)args = raspi_get_timestamp();
|
||||
break;
|
||||
case RT_DEVICE_CTRL_RTC_SET_TIME:
|
||||
raspi_set_timestamp(*(time_t *)args);
|
||||
|
||||
Reference in New Issue
Block a user