File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class ProgramCtpEmulator : public Program
5757 po::value<uint32_t >(&mOptions .hbKeep )->default_value (15000 ),
5858 " Sets the number Heartbeats to drop" );
5959 options.add_options ()(" init-orbit" ,
60- po::value<uint32_t >(&mOptions .orbitInit )->default_value (0 ),
60+ po::value<std::string >(&mOptions .orbitInit )->default_value (" 0x0 " ),
6161 " Sets the initial orbit id" );
6262 options.add_options ()(" trigger-mode" ,
6363 po::value<std::string>(&mOptions .triggerModeString )->default_value (" periodic" ),
@@ -112,7 +112,7 @@ class ProgramCtpEmulator : public Program
112112 mOptions .triggerFrequency ,
113113 mOptions .generateEox ,
114114 mOptions .generateSingleTrigger ,
115- mOptions .orbitInit });
115+ ( uint32_t ) strtoul ( mOptions .orbitInit . c_str (), NULL , 32 ) });
116116 }
117117
118118 private:
@@ -121,7 +121,7 @@ class ProgramCtpEmulator : public Program
121121 uint32_t hbDrop = 15000 ;
122122 uint32_t hbKeep = 15000 ;
123123 uint32_t hbMax = 255 ;
124- uint32_t orbitInit = 0 ;
124+ std::string orbitInit = " 0x0 " ;
125125
126126 std::string triggerModeString = " periodic" ;
127127 uint32_t triggerFrequency = 8 ;
You can’t perform that action at this time.
0 commit comments