memorized attribute : detect when the value is ready

Hello dancers,
I have a memorized r/w attribute which is initialized automatically from the database.
The value is read from the database after the init_device() call. Is there a way to detect when the value is ready?
Hi Claudio,

If your attribute is memorized with "write hardware at init" option, the attribute write_MyAttr hook will be called so you can add some logic here to detect the first call.
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new.
Edited 1 day ago
Great!
Simple and clean!
Thanks
 
Register or login to create to post a reply.