@@ -32,8 +32,8 @@ class ProgramTriggerMonitor : public Program
3232 virtual Description getDescription ()
3333 {
3434 return { " Trigger Monitor" , " Return LTU trigger monitoring information" ,
35- " o2-roc-pkt -monitor --id 42:00.0\n "
36- " o2-roc-pkt -monitor --id 42:00.0 --updateable \n " };
35+ " o2-roc-trig -monitor --id 42:00.0\n "
36+ " o2-roc-trig -monitor --id 42:00.0 --force # for pre-production CRUs \n " };
3737 }
3838
3939 virtual void addOptions (boost::program_options::options_description& options)
@@ -42,6 +42,9 @@ class ProgramTriggerMonitor : public Program
4242 options.add_options ()(" updateable" ,
4343 po::bool_switch (&mOptions .updateable ),
4444 " Toggle updateable output" );
45+ options.add_options ()(" force-report" ,
46+ po::bool_switch (&mOptions .forceReport ),
47+ " Force report for invalid serial numbers" );
4548 }
4649
4750 virtual void run (const boost::program_options::variables_map& map)
@@ -53,7 +56,7 @@ class ProgramTriggerMonitor : public Program
5356 auto card = RocPciDevice (cardId).getCardDescriptor ();
5457 auto cardType = card.cardType ;
5558
56- if (card.serialId .getSerial () == 0x7fffffff || card.serialId .getSerial () == 0x0 ) {
59+ if (! mOptions . forceReport && ( card.serialId .getSerial () == 0x7fffffff || card.serialId .getSerial () == 0x0 ) ) {
5760 std::cout << " Bad serial reported, bad card state, exiting" << std::endl;
5861 return ;
5962 }
@@ -108,6 +111,7 @@ class ProgramTriggerMonitor : public Program
108111 private:
109112 struct OptionsStruct {
110113 bool updateable = false ;
114+ bool forceReport = false ;
111115 } mOptions ;
112116};
113117
0 commit comments