diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2020-12-02 19:28:02 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2020-12-02 19:28:37 +0300 |
commit | 3a84b75c0a4c58ab7ecfc98572e11b0524e733dc (patch) | |
tree | 127dd17c64cbd5784f1d6a1b1cbb67c1366f90f4 | |
parent | 50e46e2cd1a06cacd93068fba461895204c123d0 (diff) |
More FDS stuff
-rw-r--r-- | dumper.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -602,10 +602,9 @@ static void fds_transfer(uint8_t block_read_start, uint8_t block_read_count, uin comm_start(COMMAND_FDS_DISK_NOT_INSERTED, 0); return; } + // battery test write_prg_byte(FDS_CONTROL, FDS_CONTROL_READ | FDS_CONTROL_MOTOR_ON); // monor on, unreset - DELAY_KILO_CLOCK(268500 / 1000); // ~268500 cycles - write_prg_byte(FDS_CONTROL, FDS_CONTROL_READ | FDS_MOTOR_OFF); // reset - write_prg_byte(FDS_CONTROL, FDS_CONTROL_READ | FDS_CONTROL_MOTOR_ON); // monor on, unreset + _delay_ms(100); if ((read_prg_byte(FDS_EXT_READ) & 0x80) == 0) { // battery low |