send arguments to standalone mode

This commit is contained in:
iceman1001
2020-08-08 23:45:09 +02:00
parent 8dd9c92beb
commit c1a5f93dab
3 changed files with 33 additions and 24 deletions

View File

@@ -425,13 +425,19 @@ void ModInfo(void) {
void RunMod(void) {
uint8_t mode = ICE_USE;
uint8_t *bb = BigBuf_get_EM_addr();
if (bb[0] > 0 && bb[0] < 5) {
mode = bb[0];
}
FpgaDownloadAndGo(FPGA_BITSTREAM_HF);
BigBuf_Clear();
StandAloneMode();
Dbprintf(_YELLOW_("HF iCLASS mode a.k.a iceCLASS started"));
uint8_t mode = ICE_USE;
for (;;) {

View File

@@ -2064,6 +2064,8 @@ static void PacketReceived(PacketCommandNG *packet) {
break;
}
case CMD_STANDALONE: {
uint8_t *bb = BigBuf_get_EM_addr();
bb[0] = packet->data.asBytes[0];
RunMod();
break;
}