mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
modification sendDateTime
This commit is contained in:
@@ -48,6 +48,16 @@ int eDVBCIDateTimeSession::doAction()
|
|||||||
case stateStarted:
|
case stateStarted:
|
||||||
return 0;
|
return 0;
|
||||||
case stateSendDateTime:
|
case stateSendDateTime:
|
||||||
|
sendDateTime();
|
||||||
|
return 0;
|
||||||
|
case stateFinal:
|
||||||
|
printf("stateFinal und action! kann doch garnicht sein ;)\n");
|
||||||
|
default:
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void eDVBCIDateTimeSession::sendDateTime()
|
||||||
{
|
{
|
||||||
struct tm tm_gmt;
|
struct tm tm_gmt;
|
||||||
struct tm tm_loc;
|
struct tm tm_loc;
|
||||||
@@ -74,11 +84,4 @@ int eDVBCIDateTimeSession::doAction()
|
|||||||
msg[6] = htons(tm_loc.tm_gmtoff / 60) & 0xff;
|
msg[6] = htons(tm_loc.tm_gmtoff / 60) & 0xff;
|
||||||
}
|
}
|
||||||
sendAPDU(tag, msg, 7);
|
sendAPDU(tag, msg, 7);
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
case stateFinal:
|
|
||||||
printf("stateFinal und action! kann doch garnicht sein ;)\n");
|
|
||||||
default:
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@@ -13,6 +13,7 @@ class eDVBCIDateTimeSession: public eDVBCISession
|
|||||||
public:
|
public:
|
||||||
eDVBCIDateTimeSession(eDVBCISlot *tslot);
|
eDVBCIDateTimeSession(eDVBCISlot *tslot);
|
||||||
~eDVBCIDateTimeSession();
|
~eDVBCIDateTimeSession();
|
||||||
|
void sendDateTime();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user