Skip to content

Commit 2f4f208

Browse files
authored
Merge pull request #600 from wybren1971/IMDwriter
bug fix in data rates
2 parents 00cab46 + 77ada04 commit 2f4f208

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/imagewriter/imdimagewriter.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static uint8_t getModulationandSpeed(int flags, ImdOutputProto::RecordingMode mo
4040
{
4141
return 3;
4242
}
43-
} else if ((flags>570) and (flags<630))//dont know exactly what the clock is for 300kbps assuming twice just as 500kbps en 250kbps
43+
} else if ((flags>1475) and (flags<1575))//SD disk
4444
/* 300 kbps*/
4545
{
4646
if (mode == ImdOutputProto::RECMODE_FM)
@@ -51,7 +51,7 @@ static uint8_t getModulationandSpeed(int flags, ImdOutputProto::RecordingMode mo
5151
{
5252
return 4;
5353
}
54-
} else if ((flags>475) and (flags<525)) //DD disk
54+
} else if ((flags>1900) and (flags<2100)) //DD disk
5555
/* 250 kbps */
5656
{
5757
if (mode == ImdOutputProto::RECMODE_FM)
@@ -179,8 +179,6 @@ class ImdImageWriter : public ImageWriter
179179
comment = LABEL ;
180180
comment.append(" date: ");
181181
comment.append(std::ctime(&time));
182-
// comment.append(" time: ");
183-
// comment.append(__TIME__);
184182
} else
185183
{
186184
comment.insert(0,"IMD ");

0 commit comments

Comments
 (0)