- if(downloaded_bitstream == FPGA_BITSTREAM_HF) Dbprintf(" mode.............HF");
- else if(downloaded_bitstream == FPGA_BITSTREAM_LF) Dbprintf(" mode.............LF");
- else Dbprintf(" mode.............%d", downloaded_bitstream);
+ switch(downloaded_bitstream) {
+ case FPGA_BITSTREAM_HF: Dbprintf(" mode....................HF"); break;
+ case FPGA_BITSTREAM_LF: Dbprintf(" mode....................LF"); break;
+ default: Dbprintf(" mode....................%d", downloaded_bitstream); break;
+ }
+}
+
+int FpgaGetCurrent() {
+ return downloaded_bitstream;