Skip to content

Commit

Permalink
remove undesired seeder eraser functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielburnworth committed Apr 5, 2024
1 parent 5627da2 commit 2d54f07
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 15 deletions.
3 changes: 0 additions & 3 deletions app/mutations/devices/seeders/genesis_one_seven.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ def settings_firmware
.update!(firmware_hardware: FbosConfig::FARMDUINO_K17)
end

def settings_change_firmware_config_defaults
end

def peripherals_rotary_tool
add_peripheral(2, ToolNames::ROTARY_TOOL)
end
Expand Down
3 changes: 0 additions & 3 deletions app/mutations/devices/seeders/genesis_one_six.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ def settings_firmware
.update!(firmware_hardware: FbosConfig::FARMDUINO_K16)
end

def settings_change_firmware_config_defaults
end

def peripherals_rotary_tool
add_peripheral(2, ToolNames::ROTARY_TOOL)
end
Expand Down
3 changes: 0 additions & 3 deletions app/mutations/devices/seeders/genesis_xl_one_seven.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ def settings_firmware
.update!(firmware_hardware: FbosConfig::FARMDUINO_K17)
end

def settings_change_firmware_config_defaults
end

def settings_device_name
device.update!(name: Names::GENESIS_XL)
end
Expand Down
3 changes: 0 additions & 3 deletions app/mutations/devices/seeders/genesis_xl_one_six.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ def settings_firmware
.update!(firmware_hardware: FbosConfig::FARMDUINO_K16)
end

def settings_change_firmware_config_defaults
end

def settings_device_name
device.update!(name: Names::GENESIS_XL)
end
Expand Down
4 changes: 1 addition & 3 deletions spec/controllers/api/devices/devices_controller_seed_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ def settings_hide_sensors?(device)
def settings_change_firmware_config_defaults?(device)
c = device.firmware_config

return c.encoder_enabled_x != 0 &&
c.encoder_enabled_y != 0 &&
c.encoder_enabled_z != 0
return c.movement_motor_current_x == 1646
end

def settings_soil_height?(device)
Expand Down

0 comments on commit 2d54f07

Please sign in to comment.