Skip to content

Commit 24722d4

Browse files
committed
fix bin sizes
1 parent 5d8e2fc commit 24722d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Nice_Floppy_Transfer/Nice_Floppy_Transfer.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void setup() {
8484
delay(1000);
8585

8686
Serial.print("Seeking track 00...");
87-
if (! goto_track(0)) {
87+
if (! goto_track(1)) {
8888
Serial.println("Failed to seek to track");
8989
while (1) yield();
9090
}
@@ -117,8 +117,8 @@ void print_pulses(uint8_t *pulses, uint32_t num_pulses) {
117117

118118
void print_pulse_bins(uint8_t *pulses, uint32_t num_pulses) {
119119
// lets bin em!
120-
uint8_t bins[32][2];
121-
memset(bins, 0, 32*2);
120+
uint32_t bins[32][2];
121+
memset(bins, 0, 32*2*sizeof(uint32_t));
122122

123123
// we'll add each pulse to a bin so we can figure out the 3 buckets
124124
for (uint32_t i=0; i<num_pulses; i++) {

0 commit comments

Comments
 (0)