void gosleep(date time, bool havework)
[cpp]
{
if (havework && time->hour > 25) {
if (self->cantsleep){
// TODO: implement algorithm for forcesleep()
}else {
shutdown();
}
}
}
[/cpp]
[cpp]
{
if (havework && time->hour > 25) {
if (self->cantsleep){
// TODO: implement algorithm for forcesleep()
}else {
shutdown();
}
}
}
[/cpp]