Skip to content

Commit

Permalink
Rolled back vscp_firmware.c/h from some happy hacking ;-) @svenZ80
Browse files Browse the repository at this point in the history
  • Loading branch information
grodansparadis committed Nov 25, 2015
1 parent 6a15eb6 commit 3bae432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
16 changes: 2 additions & 14 deletions common/vscp_firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,7 @@ uint8_t vscp_readStdReg(uint8_t reg)
else if ( reg >= VSCP_REG_DEVICE_URL ) {

// * * * The device URL * * *
rv = vscp_getMDF_URL(reg - VSCP_REG_DEVICE_URL);

rv = vscp_getMDF_URL(reg - VSCP_REG_DEVICE_URL);

}

Expand Down Expand Up @@ -1212,18 +1211,7 @@ void vscp_handleProtocolEvent(void)

// send the event
vscp_sendEvent();

//add some delay so zvr/bus/converter/daemon buffer can handle the traffic
// 1400 NOP for 16Mhz crystal
//todo check if message is sent before next sendevent is called, thus nu delay necessary
unsigned int i =0;
for (i =0; i<1400; i++)
{
__asm__ __volatile__ ("nop");

}



// increment byte by bytes_this_time and the event number by one
byte += bytes_this_time;

Expand Down
2 changes: 1 addition & 1 deletion common/vscp_firmware.h
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ void vscp_getEmbeddedMdfInfo(void);
This routine force the system into boot loader mode according
to the selected protocol.
*/
//void vscp_goBootloaderMode( uint8_t algorithm );
void vscp_goBootloaderMode( uint8_t algorithm );

/*!
Get Zone for device
Expand Down

2 comments on commit 3bae432

@svenZ80
Copy link
Collaborator

@svenZ80 svenZ80 commented on 3bae432 Nov 25, 2015 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@grodansparadis
Copy link
Owner Author

@grodansparadis grodansparadis commented on 3bae432 Nov 25, 2015 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.