Method: Tinkerforge::BrickHATZero#set_bootloader_mode
- Defined in:
- lib/tinkerforge/brick_hat_zero.rb
#set_bootloader_mode(mode) ⇒ Object
Sets the bootloader mode and returns the status after the requested mode change was instigated.
You can change from bootloader mode to firmware mode and vice versa. A change from bootloader mode to firmware mode will only take place if the entry function, device identifier and CRC are present and correct.
This function is used by Brick Viewer during flashing. It should not be necessary to call it in a normal user program.
173 174 175 176 177 |
# File 'lib/tinkerforge/brick_hat_zero.rb', line 173 def set_bootloader_mode(mode) check_validity send_request FUNCTION_SET_BOOTLOADER_MODE, [mode], 'C', 9, 'C' end |