summaryrefslogtreecommitdiff
path: root/supervisor/shared
diff options
context:
space:
mode:
authorMax Holliday <maholli@stanford.edu>2020-04-28 18:15:38 -0700
committerMax Holliday <maholli@stanford.edu>2020-04-28 18:15:38 -0700
commitcc290c50c677e16ccdddae74ab0861c9101727fc (patch)
treede012106f0267b8368af77cc6a6d8c6fe971ec65 /supervisor/shared
parentb2de5a9df9f32349983d02d8e99c334151dc6119 (diff)
fixing diff error
Diffstat (limited to 'supervisor/shared')
-rw-r--r--supervisor/shared/external_flash/external_flash.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/supervisor/shared/external_flash/external_flash.c b/supervisor/shared/external_flash/external_flash.c
index 6c14da410..ce4792975 100644
--- a/supervisor/shared/external_flash/external_flash.c
+++ b/supervisor/shared/external_flash/external_flash.c
@@ -226,18 +226,6 @@ void supervisor_flash_init(void) {
while (jedec_id_response[0] == 0xff) {
spi_flash_read_command(CMD_READ_JEDEC_ID, jedec_id_response, 3);
}
-
- for (uint8_t i = 0; i < EXTERNAL_FLASH_DEVICE_COUNT; i++) {
- const external_flash_device* possible_device = &possible_devices[i];
- if (jedec_id_response[0] == possible_device->manufacturer_id &&
- jedec_id_response[1] == possible_device->memory_type &&
- jedec_id_response[2] == possible_device->capacity) {
- flash_device = possible_device;
- break;
- }
- }
-#endif
-
for (uint8_t i = 0; i < EXTERNAL_FLASH_DEVICE_COUNT; i++) {
const external_flash_device* possible_device = &possible_devices[i];
if (jedec_id_response[0] == possible_device->manufacturer_id &&