if (!(TINYNVM_WaitWhileNVMControllerBusy()))\r
return false;\r
\r
- /* Must have an integer number of words to write - if extra bytes, abort programming */\r
+ /* Must have an integer number of words to write - if extra byte, word-align via a dummy high byte */\r
if (WriteLength & 0x01)\r
- return false;\r
+ WriteBuffer[WriteLength++] = 0xFF;\r
\r
/* Set the NVM control register to the WORD WRITE command for memory reading */\r
TINYNVM_SendWriteNVMRegister(XPROG_Param_NVMCMDRegAddr);\r