I use the following to erase a sector of flash memory:
proc eraseFlash
; Erases the target FlASH Sector
param integer sectorAddress
string sectorAddress_string
itoa sectorAddress sectorAddress_string ; convert for "transmit"
transmit "FLASH_SECTOR_ERASE "
transmit sectorAddress_string
transmit " ^M"
endproc
Is there a way to use "transmit" to send the string:
FLASH_SECTOR_ERASE sectorAddress_string
without using "transmit" 3 times?
thanks
proc eraseFlash
; Erases the target FlASH Sector
param integer sectorAddress
string sectorAddress_string
itoa sectorAddress sectorAddress_string ; convert for "transmit"
transmit "FLASH_SECTOR_ERASE "
transmit sectorAddress_string
transmit " ^M"
endproc
Is there a way to use "transmit" to send the string:
FLASH_SECTOR_ERASE sectorAddress_string
without using "transmit" 3 times?
thanks