Ticket #374 (closed defect: fixed)
SetCurrentTime type problem in odeviced
| Reported by: | jeremy | Owned by: | daniel |
|---|---|---|---|
| Priority: | major | Milestone: | milestone5.5 |
| Component: | framework/odeviced | Version: | milestone5 |
| Keywords: | Cc: | mickey, daniel |
Description
SetCurrentTime? interface has a problem to be called.
It says an error about it needs the argument to be float type though the dbus interface defines it a string type.
Attachments
Change History
Changed 4 years ago by jeremy
- Attachment SetCurrentTime.patch added
comment:1 Changed 4 years ago by daniel
- Owner changed from mickey to daniel
- Status changed from new to assigned
Okay, why is this even a string? This should be a float (or an int) IMHO.
http://git.freesmartphone.org/?p=specs.git;a=blob_plain;f=html/org.freesmartphone.Device.RealtimeClock.html;hb=HEAD lists the arguments as int and I think that is okay.
One thing that the spec seems to get wrong ist SetWakeupTime? ( b ), though. Clearly that should be i as well.
comment:2 Changed 4 years ago by daniel
- Status changed from assigned to closed
- Resolution set to fixed
Should be fixed in commit [f7e40ab0c79528e065c75ca938645bb7ba5a7294]
>>> devrtc.GetWakeupTime() 0 >>> devrtc.SetWakeupTime(1239267246) >>> devrtc.GetWakeupTime() 1239267246 >>> devrtc.SetWakeupTime(0) >>> devrtc.GetWakeupTime() 0
WARNING, the RTC interface takes int as parameter now, not string.

a simple patch here.