mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
modification sendDateTime
Origin commit data
------------------
Branch: master
Commit: c41f0ea13d
Author: max_10 <max_10@gmx.de>
Date: 2017-10-23 (Mon, 23 Oct 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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