lib/checkpoint/checkpoint.c
__attribute__((noinline))
int checkpoint_delete(void)
{
    nvm_write_byte(CPCMND_DEL);
    char resp = nvm_read_byte();
    if (resp != CPCMND_ACK) {
        // Deletion failed
        // TODO: handle
        return 0;
    }
    return 1;
}
/*
 * Delete the currect checkpoint used for restore in NVM
 * Can be used to do a clean boot (restart the program)
 */
Delete the currect checkpoint used for restore in NVM
Can be used to do a clean boot (restart the program)
Delete the currect checkpoint used for restore in NVM Can be used to do a clean boot ( restart the program )
__attribute__((noinline))
int checkpoint_delete(void)
{
    nvm_write_byte(CPCMND_DEL);
    char resp = nvm_read_byte();
    if (resp != CPCMND_ACK) {
        return 0;
    }
    return 1;
}
__attribute__ ( ( noinline ) ) int checkpoint_delete ( void ) { nvm_write_byte ( CPCMND_DEL ) ; char resp = nvm_read_byte ( ) ; if ( resp != CPCMND_ACK ) { return 0 ; } return 1 ; }
Delete the currect checkpoint used for restore in NVM
 Can be used to do a clean boot (restart the program)
Delete the currect checkpoint used for restore in NVM Can be used to do a clean boot ( restart the program )
// Deletion failed // TODO: handle